
07-13-2010, 04:09 PM
|
|
|
|
 eXpert
|
|
Join Date: Sep 2006
Posts: 310
|
|
|
Re: Why are they still using tables for layout?
I still don't see how it can't be done with CSS:
you use one container div, which automatically stretches to fit the height of the largest product box within it, whether there are two or three. Within each product box, you use CSS for layout. The total height of all the components doesn't matter, the container div will expand to contain all the divs within it (as long as you float them, of course, which QT don't seem familiar with!)
Have we been looking at the same templates? The one I saw meant that each row of the product box was a table cell, and if the cell on the left product box was three lines high, the corresponding cell on the right product box would also be three lines high, even if it only had one line in it - meaning the entire thing was a terrible mess, and you couldn't put a background image around the individual product boxes, etc.etc.
I don't think there would be any CSS or Smarty required for my method. I'm using it right now and it works okay - but I haven't put a container div round the two product boxes yet, and doing that would remove the need for me to set the height of the product boxes.
I don't understand what you're saying really - if I have a left hand product box that turns out to be 300px high, due to On Sale images, etc.etc., and the right hand box is only 200px high, you still want their tops to align, and you still want the next row of product boxes to start underneath the tallest of the two product boxes in the top row, so I don't see how tables does anything that simple divs do. All the tables did for me was create a god awful mess.
And my site at www.3drom.com uses divs for the product boxes (which are contained within table cells, but don't contain table cells (big difference )). And that uses 4.1!
Can you show me an example of what you mean, gb2world? I can't see any advantage to the way they've done it, only huge disadvantages (i.e. so huge that their way of doing it is completely unworkable.)
ps I will try to post up some simple box layouts displaying what I am talking about, tomorrow.
__________________
X-Cart Gold Version 4.3.2
|
|