View Single Post
Old 07-10-2004, 04:02 AM   #9 (permalink)
SinisterMotives
Junkie
 
To get DIVs to behave like table cells, you need to make sure that the total width of all the "cells" in a row, including borders and padding, is not greater than the width of the DIV representing the table row, and use the following display properties:

Code:
<div style="display: table-row;">
    <div style="display: table-cell;">Data 1</div>
    <div style="display: table-cell;">Data 2</div>
</div>
If the "cells" are wider than the "row" that contains them, the last cell in the row will be forced onto its own row in a very un-table-like manner.
SinisterMotives is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46