Jump to content

[SOLVED] Product-List Box Size


Recommended Posts

Hai guys, my first posts. (:

I've just attempted to modify the size of the boxes on product-list.tpl but instead of the row below shifting up its left a gap.
I assume each box has a dedicated area within the css but I can't seem to find it.

I've attached the css and a screenshot to assist.

Hopefully someone can shed some light as to why the boxes are not moving up.

Thanks. ^^

26895_uhWidR87MWn6L2isXKrh_t

Link to comment
Share on other sites

CSS refused to upload so I've posted below.

/* product-list.tpl */
ul#product_list{ margin-top:2em; list-style-type:none; }
ul#product_list li {
   background: #d0d3d8 url('../img/block_category_item_bg.jpg') repeat-x;
   border: solid 1px #d0d3d8;
   padding: 6px;
   height:130px;
   clear:both;
   margin-bottom:0.3em;
}
ul#product_list li a {
   text-decoration:none;
   color:#374853;
}

ul#product_list a.product_img_link{
   border: solid 1px #d0d3d8;
   float:left;
   margin-right:0.6em;
}

ul#product_list a.product_img_link img{
   vertical-align:bottom;
}
ul#product_list li h3{ margin:0.4em 0; }
ul#product_list li .new{
   background:transparent url(../img/flag_new_bg.jpg) repeat-x scroll 0%;
   border:1px solid #488C40;
   color:white;
   font-size:0.6em;
   font-weight:bold;
   margin:0pt 1em 0pt 0pt;
   padding:0pt 0.4em;
   text-transform:uppercase;
   vertical-align:0.3em;
}
ul#product_list li p.product_desc{ font-size:0.92em; }
ul#product_list li div.center_block{
   float:left;
   width:74%;
}
ul#product_list li div.right_block{
   float:left;
   width: 11em;
   text-align:right;
   margin-left:1em;
   margin-top:0;
}
ul#product_list li .discount{
   color:#da0f00;
   text-transform:uppercase;
   font-weight:bold;
   display: block;
}
ul#product_list li .on_sale{
   color:#da0f00;
   text-transform:uppercase;
   font-weight:bold;
   display: block;
}
ul#product_list li .reduction {
   display: block;
   margin-bottom: 0.3em;
}
ul#product_list li .price{
   display: block;
   font-size: 1.5em;
   margin-bottom: 0.2em;
}
ul#product_list li span.availability{
   float: right;
   color:#488c40;
   font-size:0.9em;
}
ul#product_list li a.button{ margin-top:0.5em; }

Link to comment
Share on other sites

No one got any ideas? :/
I'd really appreciate if someone could help me out.
The shops supposed to go live today but I just can't figure out this last thing.

I know the solution will be something easy thats staring me in the face but I just can't find any value that works and seemed like it would control such an aspect.

Link to comment
Share on other sites

Hi

it's because of the property "height" in your global.css file :

#center_column .products_block ul li {
background:url("../img/md-featured-li-bkg.gif") no-repeat scroll left top white;
clear:none;
display:block;
float:left;
height:320px;
margin:2px 0;
padding:0;
width:172px;
}

reduce it to 205 :

#center_column .products_block ul li {
background:url("../img/md-featured-li-bkg.gif") no-repeat scroll left top white;
clear:none;
display:block;
float:left;
height:205px;
margin:2px 0;
padding:0;
width:172px;
}

and that's all folks !
ciao

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...