Re: [WSG] Content div sticking out the side of container div

2011-12-03 Thread David Hucklesby
On 12/2/11 8:01 PM, Stevio wrote: Thanks for the suggestions. I am trying to develop a flexible layout (so I do not want to set a width for the parent element) for web sites that will be used in conjunction with a content management system. The width of child element will therefore be unknown as

RE: [WSG] Content div sticking out the side of container div

2011-12-02 Thread Kepler Gelotte
> I have found a solution and that is to use display:table-cell. I don't think table-cell is supported in IE7 and below. You may want to try max-width *instead of* setting width on the inner container as was suggested earlier. This works even in IE7. The underscore version of width is the fallback

Re: [WSG] Content div sticking out the side of container div

2011-12-02 Thread Stevio
em to be the best option. - Original Message - From: "Russ Weakley" To: Sent: Saturday, December 03, 2011 3:02 AM Subject: Re: [WSG] Content div sticking out the side of container div Somehow I do not seem to have come across this problem before. I have two divs, one c

Re: [WSG] Content div sticking out the side of container div

2011-12-02 Thread Russ Weakley
> Somehow I do not seem to have come across this problem before. I have two > divs, one contained within the other. If the viewport of the browser is > resized to be smaller than the contents of the inner div, the inner div > sticks out the side of the outer container div, which continues to res

Re: [WSG] Content div sticking out the side of container div

2011-12-02 Thread Chad Kelly
On 12/3/2011 1:42 PM, Stevio wrote: Somehow I do not seem to have come across this problem before. I have two divs, one contained within the other. If the viewport of the browser is resized to be smaller than the contents of the inner div, the inner div sticks out the side of the outer containe

RE: [WSG] Content div sticking out the side of container div

2011-12-02 Thread Greg Gamble
Outer Div has a fixed width. -Original Message- From: li...@webstandardsgroup.org [mailto:li...@webstandardsgroup.org] On Behalf Of Stevio Sent: Friday, December 02, 2011 6:42 PM To: Web Standards Group Subject: [WSG] Content div sticking out the side of container div Somehow I do not s