You are here: Re: Tables with DIV « HTML « IT news, forums, messages
Re: Tables with DIV

Posted by Andy Dingley on 10/01/11 12:01

On 27 Jan, 19:43, richard <I.dont.c...@do.you> wrote:

> .cell {float:left;}
> .row {clear:left;}
> Then it will look like a table.

No, it will look like a bunch of floated <div>, not quite like a
<table>.

Consider both these examples, with multiple rows and with varying
lengths of data in each cell. For a <table>, or the CSS example using
display:table-cell; then these columns will line up vertically. Using
floated <div>, each <div> will determine its own, differing width
according to the content that's in it.

You _could_ hard-code the width of all the <div> cells to all be the
same, but then you lose the dynamically self-sizing behaviour that's
one of the most useful aspects of table-like layout.

 

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

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