Does anyone know what CSS can be applied to these elements to make the side bars expand to the height of the middle div?
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'> <html> <head> <title>This is my page</title> <style type='text/css'> body { background-color:#aaaaaa; } #container { width:900px; margin-left:auto; margin-right:auto; } #leftborder { float:left; width:10px; background-color:#ff0000; } #rightborder { margin:0; padding:0; float:right; width:10px; background-color:#ff0000; } #middlecontainer{ margin:0 10px; } </style> </head> <body> <div id='container'> <div id='leftborder'> a </div> <div id='rightborder'> a </div> <div id='middlecontainer'> This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content </div> </div> </body> </html>
As long as your page has a fixed width, you can apply the Faux Columns-technique.
Short version: Repeat an image as a background image in a ‘wrapper-div’ to make it look like the entire page is stretching, even though the content-divs inside only are a few lines long.