Click here to get back home

DIV wraps when it shouldn't

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
DIV wraps when it shouldn't plenty900 02-29-2008
Get Chitika Premium
Posted by Ben C on March 1, 2008, 10:38 am
Please log in for more thread options
>
> Thanks for your reply. I should explain, I'm trying to
> remove all tables from a webpage.
>
> Currently I have a table like this:
>
><table width=100%><tr>
><td width=50>text text<td width=50> text text<td
>
width="*">dflajlfadljfalfkjdaslkaasldkjflakjdfaadslkjsdlfkjadslkfjalkjfldskjlfjdsldkjlksdjflsdkjfldskj
></table>
>
> In tables, TDs never wrap of course.
>
> So really my question is, how to achieve the same thing with DIVs?
>
> I assume that underlying both DIVs and TDs are the same fundmental
> mechanisms.

No, unless you set display: table-cell on the divs (won't work in IE
though).

You have discovered one of the differences-- floats stack up underneath
each other when they fill the available width but table rows don't
"break".


Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap