|
Posted by frederick on 04/22/06 07:32
Peter wrote:
> Absolute positioning in CSS with borders will effectively simulate a
> table. For example:
>
> div.tableCell1 {
> position: absolute;
> left: 1px;
> top: 20px;
> border: 1px solid black;
> }
> ...
> <div class = "tableCell1">Cell 1</div>
> This would make 1 simulated table cell. You'd have a lot more freedom
> than coding it with a table.
Problem 1:
This won't scale if the user changes the font size.
Problem 2:
Depending on how many "cells" you have, this could easily force a
horizontal scrollbar.
Problem 3:
This is very inefficient coding, since each "cell" would require its
own class or id, meaning a lot of needless duplication. For example,
if you had eight "cells", and you decided to change their widths, you'd
have to change your code in eight different places, even if the "cells"
were all the same size.
--
AGw.
Navigation:
[Reply to this message]
|