/    Sign up×
Community /Pin to ProfileBookmark

Help fix this page…position errors

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…

[code=html]
<!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=”#”>Link 1</a></li>
<li><a href=”#”>Link 2</a></li>
<li><a href=”#”>Link 3</a></li>
<li><a href=”#”>Link 4</a></li>
<li><a href=”#”>Link 5</a></li>
<li><a href=”#”>Link 6</a></li>
<li><a href=”#”>Link 7</a></li>
</ul>
</div>
</div>
<div id=”footer”>
Footer here!
</div>
</div>

</div>
</body>
</html>
[/code]

[upl-file uuid=e4c3642b-caca-4c88-9848-16e1e932eb3a size=1kB]sample.zip[/upl-file]

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@rch10007authorAug 11.2005 — 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.
Copy linkTweet thisAlerts:
@rch10007authorAug 11.2005 — ...anyone?
Copy linkTweet thisAlerts:
@ray326Aug 11.2005 — Follow your #navarea div with

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

and change the following

#footer { clear:both; background : green; }
Copy linkTweet thisAlerts:
@rch10007authorAug 11.2005 — 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!
×

Success!

Help @rch10007 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...