Here is an example of the problem.
I have used two different colours for this example (in my site they will be the same colour)
How can I get the background colour of the navigation area to continue down and stop in the same place as the background area of the main content.
A basic example is shown below normally i use an external style sheet.
Code:
<html>
<head>
<style type="text/css">
#nav {background-color: green; float: left;}
#content {background-color: yellow; float: left;}
</style>
</head>
<body>
<div id="nav">
Line 1 <br />Line 2<br />Line 3<br /> Line 4<br />
</div>
<div id="content">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore
et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt
mollit anim id est laborum.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore
et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt
mollit anim id est laborum.</p>
</div>
</body>
</html>
Hope this helps explain things a little better.
__________________
pjb007
Last edited by pjb007 : 11-03-2007 at 03:28 PM.
|