Using the following css
[CODE]
div#wrapper {width: 70%; margin:0 auto;}
div#header {width: 100%; height: 140px; background: yellow; padding: 0px, 0px, 0px, 0px; float:center;}
div#navigation {width: 20%; background: gray; padding: 0px, 0px, 0px, 0px; float:left;}
div#mainContent {width: 80%; height:auto; background: red; padding: 0px, 0px, 0px, 0px; float:left;}
div#footer {width: 100%; height: 140px; background: black; padding: 0px, 0px, 0px, 0px; float:center;}
My problem is this:
The navigation section is directly to the left of the main content section.
How can I ensure that the height of the navigation section will ALWAYS match that of the main content section which will be dynamic based on the amount of text in it?
I understand that using auto will stretch the main content section as text is added inside it. However the navigation section will be mainly static thus creating a gap starting underneath the nav section to the end of the main content section.
Can I make sure the naigation section will grow as and when the maincontent section grows?
Hope this makes sense!
John