?
Solved

Why doesn't this footer hug the bottom of the page?

Posted on 2013-06-26
3
Medium Priority
?
424 Views
Last Modified: 2013-06-26
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:

@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;
}

Open in new window


...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>

Open in new window

0
Comment
Question by:brucegust
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 58

Accepted Solution

by:
Julian Hansen earned 2000 total points
ID: 39279177
Add this to your style sheet for html

html {
  ...
  height: 100%;
}
0
 

Author Comment

by:brucegust
ID: 39279440
0
 
LVL 58

Expert Comment

by:Julian Hansen
ID: 39280409
You are welcome - thanks for the points
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses
Course of the Month11 days, 21 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question