Forum Moderators: not2easy

Message Too Old, No Replies

Footer position problem

OK IE6/NN7, not Opera7/Mozilla1.4a

         

joolsm

10:10 am on Aug 24, 2003 (gmt 0)

10+ Year Member



I'm having trouble getting my footer div positioned correctly in a template. I want it at the bottom of the page. It renders OK here on Win98 in IE6 and NN7, but in Mozilla and Opera 7 it is towards the top of the page. CSS is linked, not imported. I've tried various ways of positioning the div, but without success. The height of #contmins varies according to page content. Can anyone please point out where I'm going wrong? Many thanks, Jools.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>text</title>
</head>
<body>
<!-- start of outer div --><div id="outer">
<!-- start of header div -->
<div id="hdr" align="center"> <!-- start of tracker div --> <div id="tracker">text
</div><!-- end of tracker div --><!-- start of headpic div --><div align="right" id=headpic>images</div><!-- end of headpic div --></div>
<!-- end of header div -->
<!-- start of bar div --><div id="bar"><form method="get" action="">
<div class="ground">Background<br>
colour:<br>
</div>
</form></div><!-- end of bar div -->
<!-- start of bodyblock div -->
<div id="bodyblock">
<!-- start of l-col div -->
<div id="l-col" align="left">
<!-- start of links div -->
<div id="links">
<h1>text</h1>
</div>
<!-- end of links div -->
</div>
<!-- end of l-col div -->
<!-- start of cont div -->
<div id="contmins">
<p>text</p>
</div>
<!-- end of cont div -->
</div>
<!-- end of bodyblock div -->
</div>
<!-- end of outer div -->
<!-- start of ftr div -->
<div id="ftr" align="right">images</div>
</div>
<!-- end of ftr div -->
</body>
</html>

#outer {
width: 98%;
height: 100%;
}

#hdr {
height: 3%;
margin-top: 2%;
}

#headpic {
height: 10%;
width: 80%;
}

#tracker {
display: none;
}

#bar {
padding-left: 20px;
vertical-align : top;
border : none;
height: 3%;
}

#bodyblock {
width: 100%;
position: relative;
height: 80%;
padding: 0px;
vertical-align : top;
margin-top: 10px;
}

#l-col {
float: left;
padding: 0px;
z-index: 1;
vertical-align: top;
text-align: left;
width: 16%;
height: 100%;
}

#contmins {
position: relative;
vertical-align: top;
width: 80%;
float: right;
height: 1px;
}

#ftr {
margin: 0px;
height: 10%;
margin-bottom: 2%;
width: 100%;
text-align : center;
float: right;
}

joolsm

8:56 pm on Aug 24, 2003 (gmt 0)

10+ Year Member



Having gone away and had a think, I've had another go - problem solved. Jools

TGecho

9:10 pm on Aug 24, 2003 (gmt 0)

10+ Year Member



Would you mind telling us what the problem was and how you fixed it?

joolsm

9:47 pm on Aug 24, 2003 (gmt 0)

10+ Year Member



Checked the maths on all my heights, moved #footer to immediately below #bodyblock and set position as static.

Jools