Help fix this page...position errors

liunx

Guest
I can't seem to get it to display properly in FF. It is ok in IE.

The problems include the footer which not is position nor does the bg color of the nav area stretch to the bottom.

I combined my files into the following code and I will also upload the file.

Please help, I've spent 5 hours on this and I am out of hair to pull out.

It validates, so it's not coding error - I am just missing something and can't figure it out.

Thanks...


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="author" content="" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="robots" content="all" />
<title>title</title>
<style type="text/css">
body {
margin : 10px;
background : teal;
}
#center {
width : 800px;
position : absolute;
left : 50%;
margin-left : -400px;
background : silver;
padding-bottom : 3px;
}
#outtercon {
width : 100%;
position : relative;
margin : -6px 0 0 -4px;
background : white;
border : 1px solid black;
}
#headcon {
width : 100%;
background-image : url(../images/topbg.jpg);
background-repeat : no-repeat;
height : 150px;
}
#toparea {
width : 100%;
background : blue;
margin : 0;
text-align : right;
}
#bodycon {
position : relative;
width : 100%;
background : white;
margin : 0;
}
#contents {
width : 550px;
float : right;
background : white;
}
#navarea {
width : 250px;
background : white;
float : left;
}
#footer {
width : 100%;
background : green;
}
</style>
</head>

<body>

<div id="center">
<div id="outtercon">
<div id="headcon"></div>
<div id="toparea">
<form method="get" action="http://www.dogpile.com/info.dogpl.sbox/search/redir.htm">
<fieldset>
<input type="hidden" name="qcat" value="web" />
<label><span><input type="text" name="qkw" /></span></label>
<label><span><input type="submit" name="submit" value="Search" /></span></label>
</fieldset>
</form>
</div>
<div id="bodycon">
<div id="contents">
<h1>Home Page</h1>

<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>

<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>

<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p> </div>
<div id="navarea">
<ul>
<li><a href=http://www.webdeveloper.com/forum/archive/index.php/"#">Link 1</a></li>
<li><a href=http://www.webdeveloper.com/forum/archive/index.php/"#">Link 2</a></li>
<li><a href=http://www.webdeveloper.com/forum/archive/index.php/"#">Link 3</a></li>
<li><a href=http://www.webdeveloper.com/forum/archive/index.php/"#">Link 4</a></li>
<li><a href=http://www.webdeveloper.com/forum/archive/index.php/"#">Link 5</a></li>
<li><a href=http://www.webdeveloper.com/forum/archive/index.php/"#">Link 6</a></li>
<li><a href=http://www.webdeveloper.com/forum/archive/index.php/"#">Link 7</a></li>
</ul>
</div>
</div>
<div id="footer">
Footer here!
</div>
</div>

</div>
</body>
</html>Ok...someone knows how to fix this - I've tried everything I've read in every post I could serach for and I'm out of ideas....anyone?Follow your #navarea div with

<div style="clear:both;line-height:0">.</div>

and change the following

#footer { clear:both; background : green; }I LOVE YOU MANNNNNN!

I knew it was something easy i forgot - I never do get those clear's in where they are supposed to. Thanks!
 
Back
Top