Help: Stretch footer color vertically 100% without scrolling
Posted: 06 May 2006 01:08 PM   [ Ignore ]
Newbie
Rank
Total Posts:  1
Joined  2006-05-06

I am having the darndest time trying to get the footer color to fill the entire footer area. I could set the footer’s height to a high number (700px), but it was cause the scrollbar to appear. I tried the overflow: hidden tag, but it doesn’t seem to help.

Any tips are GREATLY appreciated. Try not to laugh at my code.

-Kid

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"
>
<
html>
<
head>
<
title>Untitled Document</title>
<
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<
style type="text/css">
<!--
/* structure */
.header {
height
187px;
background#808080 url(../images/header_bg.gif) repeat-x;
positionrelative;
z-index1;
}

.logo {
height
:120px;
width:770px;
float:left;
}
.wrap {
text
-alignleft;
marginauto;
padding0px 0 0 0;
width750px;
z-index2;
positionrelative;
}
.left_side {
clear
both;
width:68%;
padding0px 5px 60px 15px;
float:left;
margin: -55px 0 0 0;
positionrelative;
z-index4;
border-right1px solid #ededed;
border-left1px solid #ededed;
}
.right_side {
width
:29%;
float:right;
padding0px 0 150px 0;
margin-top: -55px;
positionrelative;
z-index5;
}
#banner {
text-align:center;
}
#footer_wrap {
clear:both;
heightauto;
overflowhidden;
background#a04031  url(../images/footer_bg.gif) repeat-x;
width100%;
font-size0.8em;
text-aligncenter;
margin0 0 1000;
}
.footer{
width
700px;
font-size12px;
font-familyVerdanaArialHelveticasans-serif;
color#ffd3bd;
padding10px 0 10px 0;
marginauto;
text-aligncenter;
line-height1.9em;
}
.copyright {
font
-size14px;
font-familyTahomaHelveticasans-serif;
}
/* big titles */
.componentheading {
color
#ffa250;
font-familyGeorgiaTrebuchet MSArialVerdanasans-serif;
font-size26px;
line-height30px;
padding-bottom5px;
padding-top8px;
letter-spacing: -1px;
border-bottom1px solid #ededed;
displayblock;
width:440px;
text-alignleft;
letter-spacing1px;
}
.contentheading {
color
#a04031;
font-familyTrebuchet MSVerdanasans-serif;
font-size16px;
padding10px 0 0 0;
letter-spacing3px;
font-weightbold;
text-transformuppercase;
}
/* right menu */
#active_menu {
color#ffa250;
background#fff9ef;
border-bottom1px solid #ffa250;
}
a
.mainlevel:linka.mainlevel:visited {
color
#a04031;
border-bottom1px solid #eee;
displayblock;
font-weightbold;
font-familyTahoma;
font-size13px;
margin0 0 0 0px;
padding3.5px;
text-decorationnone;
}
a
.mainlevel:hover {
color
#ffa250;
background#fff;
border-bottom1px solid #ffa250;
}
a
.mainmenu:linka.mainmenu:visited {
color
#7DB30E; 
font-familyArial,VerdanaHelveticasans-serif;
font-weightbold;
font-size10px;
}
a
.mainmenu:hover {
color
#1E0B04; 
}
-->
</
style>
</
head>
<
body
<
div class="header"
  <
div class="wrap"
    <
div class="logo"><img src="images/header.jpg" border="0" width="770" height="120"></div
  </
div
</
div
<
div class="wrap"
  <
div class="left_side"
    <
div class="componentheading">Service Menu Rates</div
  </
div
</
div
<
div id="footer_wrap"
  <
div class="footer"><span class="copyright">Copyright 2006 Phoenix Massage Therapy Practice</span> <br /> 
    <
br /> 
    <
br /> 
  </
div
</
div
</
body>
</
html
Profile
 
 
Posted: 15 May 2006 04:49 AM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  10
Joined  2005-03-18

You don’t need these:

positionrelative;
z-index1

Alter this:

#footer_wrap {
display:block;
background#a04031  url(../images/footer_bg.gif) repeat-x;
width100%;
font-size0.8em;
text-aligncenter;

Otherwise, you could also add a height-value…

Profile