homepage Welcome to WebmasterWorld Guest from 54.166.122.65
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Tables cells without overflow....
that don't go off the page
joshie76

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 1079 posted 9:49 am on Oct 3, 2001 (gmt 0)

We only need this to work in IE5+ but I can't seem to manage it.

We have a dynamic table (width="100%") with any number of columns, each cell with potentially a long string. I don't want any of the cells to wrap their content - but the nowrap attribute and <nobr> force the table column to expand to the length of the string which, in some cases, takes the edge of the table off screen. Basically I want the table to size normally and the cell content to *chop* if it's too big.

I could use <div> tags with no overflow but to do this I need to state the explicit size of the column; which I can't because there could be any number of columns.

Any ideas - if there is an answer I'm sure it must lie in CSS but I can't find it.

 

joshie76

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 1079 posted 9:59 am on Oct 3, 2001 (gmt 0)

Bingo!

style="table-layout:fixed" seems to work quite well... Just found this page has a detailed description of CSS2s table layout controls: [webreview.com...]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved