Each is my first post, so I hope that everything is correct.
I ran into a problem when I have child divs that should be the same width. #content may be larger than the browser window (hence 3000px , but will not always be larger than the browser window). Currently, #content displayed correctly, and I can use the scroll bar to view the entire #content , but #messages and #menu cropped to the width of the browser window.
I tried using width: inherit and several other options, but they did not work. Does anyone else have a working solution?
I created JSFiddle to make life easier http://jsfiddle.net/Ks665/
I added a screenshot of the prospectus:

Red and green should be as long as the blue div.
HTML:
<html> <head> <link rel="stylesheet" href="style.css" media="screen"/> </head> <body> <div id="messages">test</div> <div id="menu">test</div> <div id="content">test</div> </body> <html>
CSS
@import url('reset.css'); body { min-width: 990px; } #messages { height: 100px; background-color: red; } #menu { height: 100px; background-color: green; } #content { background-color: blue; height: 250px; width: 3000px; }
source share