Bruce Gust
asked on
Why doesn't this footer hug the bottom of the page?
Head out to http://specialpromotionsinc.com/partner/home.php. On IE, it looks fine, but in Safari, the black footer is up towards the middle of the page.
I've played around with several things but have come up short. What am I missing? How can I get the footer to hug the bottom of the page in Safari as well as in IE?
Here's my stylesheet:
...and here's my html:
I've played around with several things but have come up short. What am I missing? How can I get the footer to hug the bottom of the page in Safari as well as in IE?
Here's my stylesheet:
@media screen and (max-width: 1024px) { /* Specific to this particular image */
img.bg {
left: 50%;
margin-left: -512px; /* 50% */
}
}
body {
font-family: Helvetica, Microsoft Sans Serif;
font-size: 12px;
color: #ffffff;
vertical-align: top;
padding: 0px;
height: 100%;
min-height:100%;
width: 100%;
margin: 0;
background-color:#ffffff;
}
#container {
min-height:100%;
position:relative;
}
#header {
margin: 0;
height:156px;
width:100%;
background-image: url(images/gradient.png);
background-repeat:repeat-x;
}
#top_graphics {
margin:auto;
width:1000px;
height:156px;
}
#wagon_wheel {
margin:auto;
width:1000px;
height:529px;
}
#content {
padding-bottom:35px;
min-height:100%;
}
#footer {
position:absolute;
bottom:0;
width:100%;
height:35px; /* Height of the footer */
background-color:#000000;
clear:both;
}
#footer_text {
position:relative;
margin:auto;
text-align:center;
font-family: Helvetica, Microsoft Sans Serif;
font-size: 12px;
color: #ffffff;
padding-top:10px;
}
A.footer_text
{
font-family: Helvetica, Microsoft Sans Serif;
font-size: 12px;
color: #ffffff;
text-decoration:none;
}
A.footer_text:Hover
{
font-family: Helvetica, Microsoft Sans Serif;
font-size: 12px;
color: #ffffff;
text-decoration:underline;
}
A.footer_text:Visited
{
font-family: Helvetica, Microsoft Sans Serif;
font-size: 12px;
color: #ffffff;
text-decoration:none;
}
...and here's my html:
<body>
<div id="container">
<div id="content">
<div id="header">
<div id="top_graphics"><IMG SRC="images/top_graphics.png"></div>
</div>
<div id="content">
<div id="wagon_wheel"><IMG SRC="images/wagon_wheel_colored.png" usemap="#wagon_wheel" border="0"></div>
</div>
<div id="footer">
<div id="footer_text">For more information, contact <A HREF="mailto:steven@countryshowdown.com" class="footer_text">Steven Edwards</a>, <A HREF="mailto:mike@countryshowdown.com" class="footer_text">Mike Newton</a> or <A HREF="mailto:larry@countryshowdown.com" class="footer_text">Larry Wiater</a> or call 615.321.5130</div>
</div>
</div>
</div>
</html>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You are welcome - thanks for the points
ASKER
Thanks!
Another question, if you've got the time:
https://www.experts-exchange.com/questions/28168786/Why-will-this-footer-not-remain-consistently-at-the-bottom-of-the-page.html