Mmmmm lol ....
Ok so I copied the .box-product block and renamed it, creating a new class called .box-related - the following is the block of code I copied and edited ...
Code: Select all
.box-related {
width: auto;
text-align: center;
overflow: hidden; }
#column-right .box-related,
#column-left .box-related { padding-left: none; }
#content .box-related { padding-left: 15px; text-align: center; }
.box-related > div {
width: 128px;
margin-right: 15px;
margin-bottom: 15px;
text-align: center; }
#column-right .box-related > div,
#column-left .box-related > div { width: 158px; margin-right: none; }
#content .box-related > div { width: 130px; margin-right: 10px; }
.box-related .image img { border: 1px solid #353535; }
#column-right .box-related .image img, #column-right .box-related .image img { }
.box-related .price { color: #ddd; }
Then I edited product.tpl (I'm using default black so in my case it used the file from the normal default template). I changed the reference at <div class="box-product"> to <div class="box-related"> on line 299.
I uploaded the new files and the result was not as expected - the related products 'grid' now displays only one row vertically down the left side (so it's a column now rather than a row, if you see what I mean).
The only difference between the block of code I copied and the original is a size value and a 'center' command - just for ease here is the unedited code block (the 'latest' grid is using this block of css and it looks fine) ...
Code: Select all
.box-product {
width: auto;
text-align: center;
overflow: hidden; }
#column-right .box-product,
#column-left .box-product { padding-left: none; }
#content .box-product { padding-left: 15px; text-align: left; }
.box-product > div {
width: 128px;
margin-right: 15px;
margin-bottom: 15px;
text-align: center; }
#column-right .box-product > div,
#column-left .box-product > div { width: 158px; margin-right: none; }
#content .box-product > div { width: 139px; margin-right: 15px; }
.box-product .image img { border: 1px solid #353535; }
#column-right .box-product .image img, #column-right .box-product .image img { }
.box-product .price { color: #ddd; }
I've checked just to be sure and the grids on the front page (latest etc) are using .box-product, and the one on the related products tab is using .box-related. Obviously I've screwed something up but I'm not seeing it lol - been playing with it for hours now.
So if someone could put me out of my stupidity and point me in the right direction I would be most grateful
Cheers