Here's my problem, I want to have two divs side-by-side; one a sub-navigation, and the other the main section. The sub-navigation div will have a different background color than the main section. As I fill up the main section with text and images, I want the sub-navigation background color to continue flush with the bottom of the main section. The only way I've found to get this to work is through the use of a wrapper div to give the "illusion" that the sub-navigation continues. I've tested the html below, and it works in the newest Firefox. Except, it doesn't work in many netscapes, nor does it work in Firefox 1.0. Is there a better way, or some sort of hack I can insert to make it more cross-browser compatible?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>Stretchable DIV Background-Color</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style type="text/css">
<div class="wrapper"> <div class="header">Header</div> <div class="navigation">Navigation</div> <div class="sub-header">Sub-Header</div> <div class="sub-navigation">Sub-Navigation</div> <div class="main">Filler text to make this div stretch, in hopes of making the "wrapper" background-color stretch, giving the illusion that "sub-navigation" is stretching</div> <div class="fix"></div> </div>