The same problem occurs for me in FF, IE6, and IE7. I'm testing primarily against IE7 while finding a solution to the result of the table extending past the containing div's boundaries, without stretching the div.
> I would guess that changing .content from width: 100% to min-width: 100% will solve it. I don't understand min-width well, but I see no difference with this change. Another list member suggested adding overflow-scroll to the containing DIV - that results in the overall page layout staying politely within the page, and scrollbars added within the DIV. This is a possible solution, but my goal is to have the DIV expand past the page boundary as much as needed, to contain the table. > Generally it is easier for list members to answer your question if > you put up a test page that demonstrates the problem. (Good point - Still trying to figure out the best place to post sample files.. Here's the HTML with CSS in header http://homepage.mac.com/binain/.Public/experiment/tablewiderthandiv.html ) -----Original Message----- From: Roger Roelofs [mailto:[EMAIL PROTECTED] Sent: Sunday, December 10, 2006 5:45 AM To: Will Budreau Cc: css-d@lists.css-discuss.org Subject: Re: [css-d] Table extending past window, DIV does not Will, On Dec 8, 2006, at 2:23 PM, Will Budreau wrote: > In the following code, I have a bounded area that fits nicely > within the > borders of the screen. > However, the table contents within it extend past the bounded area, > past the > edge of the screen. > I would expect the containing DIV to extend past the edge of the > screen > along with the table. Generally it is easier for list members to answer your question if you put up a test page that demonstrates the problem. I would guess that changing .content from width: 100% to min-width: 100% will solve it. Specifying a width: 100% in standards compliant browsers means that element will be exactly as wide as its parent. If the content won't fit it will overflow. ie/win version 6 and below doesn't count a standards compliant browser in this area. It will expand containers to make the content fit. hth -- Roger Roelofs "Remember, if you're headed in the wrong direction, God allows U-turns!" ~Allison Gappa Bottke ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/