In xHTML, and CSS. How would I do this: Basically the left grey one is just a background. Then the white one is where the content goes. The next red one is the menu, and the last grey one is the right side background? I want it so the grey, grey, and red patchs are a fixed width. However the white expands to fill the screen. Can anybody help me please? Thanks, BlueEew.
this need three divs, first div with grey color and second with red and last with white. do padding for the white and red divs.
You wont need a <div> for the background (grey) colour, that can be applied to the body. The white area would be a <div> as would the red one, something like, for the html... <div id="content"> <h1> Content </h1> </div> <div id="right"> <h2> Right</h2> </div> Code (markup): CSS, body { background-color: #333333; } #content { width: x; float: left; } #right { float: left; width: x; } Code (markup): To make the red column expand to the height you want you will have to look into faix column techniques. www.alistapart.com/articles/fauxcolumns/ Here is one link...
For me, I will define the gray as bg color for the body, then define a container that will contain image that expands vertically- this will be your faux column. body { text-align: left; color: #333; /* this will be the gray background */ } #main_container { margin: 0 auto; width: 720px; min-height: 600px important! height: 600px; background: url("bgimg.gif") repeat-y; } #column_left { text-align: left; float: left; width: 60%; } #column_right { float: right; width: 30%; } html: <body> <div id="main_container> <div id="column_left"></div> <div id="column_right"></div> </div> </body> just create a gif image with 720px width 1px height with 60% white and 30%red on the right, this will be your bgimg.gif.