Forum Moderators: not2easy
When the two middle columns don’t have any “position: absolute;” tags the footer stays below the longest column regardless of whether it is the right or left column. However, when either the left or the right column has a “position: absolute;” tag, the footer ignores the length of that column and aligns itself with the bottom of the other column. If I place a “position: absolute;” tag in both of the middle columns, the footer aligns itself with the bottom of the header.
We have to use a “position: absolute;” tag in the content column because of browser resolution issues.
What is causing this? Is there a solution to this problem? What other info do you need if this isn’t enough.
Thank you,
<!-- #BeginEditable "aspcode" --><!-- #EndEditable -->
<!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=utf-8" />
<!-- #BeginEditable "doctitle" --><title>MYSITE</title><!-- #EndEditable -->
<link href="inc/style2.css" rel="stylesheet" type="text/css" />
</head>
<body><div id="header">
<div id="Layer1" style="position:absolute; left:0px; top:0px; width:100%; height:16px; z-index:1; align:right;">
<div align="right"><img src="images/header_01.jpg" width="750" height="16"></div>
</div>
<div id="Layer2" style="position:absolute; left:0px; top:16px; width:351px; height:93px; z-index:3"><img src="images/header_02.jpg" width="238" height="93"><img src="images/header_03.jpg" width="113" height="93"></div>
<div id="Layer3" style="position:absolute; left:0px; top:16px; height:93px; z-index:2; align:right; width: 100%;">
<div align="right"><img src="images/header_04.jpg" width="399" height="93"></div>
</div>
<div id="Layer4" style="position:absolute; left:0px; top:109px; width:505px; height:81px; z-index:5"><img src="images/header_05.jpg" width="238" height="81"><img src="images/header_06.jpg" width="113" height="81"><img src="images/header_07.jpg" width="143" height="81"><img src="images/header_08.jpg" width="11" height="81"></div>
<div id="Layer5" style="position:absolute; left:0px; top:109px; width:100%; height:81px; z-index:4; background-image: url(images/bg_right_header.jpg); layer-background-image: url(images/bg_right_header.jpg); border: 1px none #000000;">
<table border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td width="172" height="38" valign="top"><a href="/About.aspx"><img src="images/header1_01.jpg" width="172" height="38" border="0" /></a></td>
<td width="73" height="81" rowspan="3" valign="top"><img src="images/header1_02.jpg" width="73" height="81" /></td>
</tr>
<tr>
<td align="center" class="timeformat"><%response.write(now())%><br>
<a href="/login/signupform.aspx" class="timeformat">Click Here to Sign Up</a></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</div>
<div id="Layer6" style="position:absolute; left:0px; top:190px; width:238px; height:66px; z-index:6"><img src="images/header_10.jpg" width=238 height=66 alt=""></div>
<div id="Layer7" style="position:absolute; left:238px; top:190px; width:30px; height:66px; z-index:7"><img src="images/left_title.jpg" width="30" height="66" /></div>
<div id="Layer9" style="position:absolute; left:268px; top:190px; height:66px; z-index:7" class="textRight11"><font size="+2"><strong><br />
<!-- #BeginEditable "pageheader" --><!-- #EndEditable --></strong></font></div>
<div id="Layer8-a" style="position:absolute; left:0px; top:256px; width:100%; height:2px; z-index:8; background-color: #003000; layer-background-color: #003000; border: 1px none #000000"><img src="images/1x1.gif" height="2"><!-- <img src="images/MYSITE_11.jpg" /> --></div>
<div id="Layer8" style="position:absolute; left:0px; top:256px; width:196px; height:2px; z-index:8; background-color: #4D6F4D; layer-background-color: #4D6F4D; border: 1px none #000000"><img src="images/1x1.gif" height="2"><!-- <img src="images/MYSITE_11.jpg" /> --></div>
<!-- Start Header -->
</div>
<div id="main1">
<div id="left">
<!-- Start Sidebar -->
LINKS GO HERE
<!-- End Sidebar -->
<div id="middle" >
<!-- Start Content -->
<div class="column-in" style="position:absolute; left:210px; top:270px; z-index:50; align:right;">
<div class="textRight11">
<!-- #BeginEditable "Content" -->CONTENT GOES HERE<!-- #EndEditable -->
</div>
</div>
<!-- End Content -->
</div>
<div class="cleaner"> </div>
</div>
<div id="footer" align="center" style="width: 100%; height: 36px">
<!-- Start Footer -->
<!-- Start Footer -->
<br>
</div>
</body>
</html>
@import "texts.css";
body {
margin:0; padding:0;
min-width: 750px;
}
#header {
margin:0; padding:0;
height:258px;
background:white;
}
#footer {
margin:0;
padding:0;
background:#003000;
height:20px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
color: #FFFFFF;
}
#main1 {
margin:0; padding:0;
background:white url(../images/bg_left.jpg) top left repeat-y;
}
#main2 {
margin:199; padding:0;
/*background:url(../images/bg_right02.jpg) top right repeat-y;*/
}
#left {
float:left;
width:199px;
margin:0;
padding:0;
/*background:url(../images/bg_left.jpg) top right no-repeat;*/
}
#leftPadding { padding-left:15px;}
/*
#right {
float:right;
width:170px;
margin:0;
padding:0;
}
#right_content {
background:url(../images/triangle.jpg) top left no-repeat;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #003000;
text-decoration: none;
padding-left:15px;
}
#right_up {
background:url(../images/bg_right01.jpg) top right repeat-y;
padding-left:15px;
padding-top:10px;
padding-bottom:10px;
}
#right_up_title {
height:28px;
background:url(../images/bg_right_title.jpg) top right repeat-y;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #FFFFFF;
}
*/
#middle {
margin:0 0px;
padding-left:210px;
/*background:white*/
}
.column-in {
margin:0; padding:0.5em 1em;
}
.cleaner {
clear:both;
height:1px;
font-size:1px;
border:none;
margin:0; padding:0;
background:transparent;
}
.li {
list-style-type: none;
list-style-image: url(../images/circle1.jpg);
}
The only vague problem with the layout is some back-ground image issues on the menu in Firefox, which are not major and which I haven't yet bothered to go too deeply into.
Since you've got essentially a two-column flexible layout with header and footer why don't you find a css reservoir (like bluerobot) where the css does what you want?
Dump all your current interior divs and content out of the design, make it work with minimum widths and then slowly add your content back in, checking along the way to make sure padding or widths don't break it...
<!-- #BeginEditable "aspcode" --><!-- #EndEditable --><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
I'm surprised no one has mentioned this - it might have something to do with your issue (although I'm pretty sure it's not the main problem):
Putting ANYTHING before the doctype, will cause IE to render the document in quirks mode [google.ca] - which will probably cause your page to look quite different from what you had intended.
It's ok to put in your .asp code there, as long as it doesn't output anything in that place. You might just want to do this instead:
<%
'<!-- #BeginEditable "aspcode" --><!-- #EndEditable -->
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
...though I'm not sure it will work for whatever you're doing in that spot...
-B
belam, we never output information in the top coding section. It's just there to have a standard spot to put queries and such.
bedlam is right on this one. ANYTHING before the doctype throws IE into Quirks mode, including that whitespace/carriage return between the template tags and the doctype.
cEM