Here's the simple template I created first of all.

Then I added 3 more areas on top of the body area.

The problem is when I try to add the final area (Content area 4), it shows up under the Content area 2 and Content area 3. Like this
(I just commented out the CSS rules of those to get this screenshot)

How can I make it appear after Content area 2 and Content area 3? (TO cover the little bit of body space in the 2nd image)
here's the HTML code of the page.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="stylesheets/ericmeyer_css_reset.css" />
<link rel="stylesheet" type="text/css" href="stylesheets/styles.css" />
</head>
<body>
<div id="container">
<div id="header">
</div>
<div id="body">
<div id="area-1">
</div>
<div id="area-2">
</div>
<div id="area-3">
</div><
<div id="area-4">
</div>
</div>
<div id="footer">
</div>
</div>
</body>
</html>
And the CSS
#container { width:900px; height:1100px; font-family:Segoe UI, Calibri, sans-serif; margin-left:auto; margin-right:auto; background-color:#FFF; position:relative; }
#header { width:900px; height:200px; background-color:#C0F; }
#body { width:900px; height:800px; background-color:#0FF; }
#area-1 { width:900px; height:310px; background-color:#0C3; }
#area-2 { width:600px; height:300px; background-color:#CF6; float:left; }
#area-3 { width:300px; height:300px; background-color:#FC6; float:right; }
#area-4 { width:900px; height:190px; background-color:#F39; }
#footer { width:900px; height:100px; background-color:#603; }
This post has been edited by nK0de: 25 September 2012 - 11:08 AM

New Topic/Question
Reply


MultiQuote




|