You are here: Re: Making a table with divs « HTML « IT news, forums, messages
Re: Making a table with divs

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация