I'm having a content div floating on the right (like a menu), and the content wrapped around it. In IE, the menu floats properly and the content wraps around it properly. However, in Firefox, there is a problem. The menu floats correctly, however the content won't wrap around it - that is, the content stays a fixed width the whole length of the page, as if the menu was that long.
The following picture shows the problem in Firefox:
My code is as follows:
Code:<div id="Content_Container"> <div id="Right_Content"> //Content here </div> <div id="Body"> //Content here </div> </div>Code:#Body { padding-right: 20px; background: #FFFFFF; margin-right: 0px; overflow: auto; } #Content_Container { top: -20px; position: relative; margin: 0 auto; width: 900px; display: inline; overflow: auto; } #Right_Content { width: 235px; float: right; background: #FFFFFF; padding: 10px; }








Bookmarks