Solved

I'm having problems creating a footer at the bottom of my webpage

Posted on 2011-03-05
6
364 Views
Last Modified: 2012-05-11
I would like to add a footer that is the same as the top header part.  This is working fine in IE7 but not in firefox.  I have added the html page and the css page as well.  Any help would be greatly appreciated.  Thanks......
<!------------TOPBAR AND MENU-------------------->
<div id="topbar">
 <div id="TopSection">
   <div id="header">
     <h1 id="sitename">longrundata.com<span class="sitename2">Historical Stock Market Data</span></h1>
   </div>	  
   <?php
     menu();
   ?>
 </div>
</div>
<!------------END TOPBAR AND MENU----------------->

<div id="wrap">
  <div id="contents">
 
    <!-------------------LEFT PANE--------------->
     <div id="aboutdiv">
       <h3>Quotes</h3>	   
         <p>	
			<form method="POST">
				 <input type="text" name="symbol" size="9" value=""/>
				 <input type="submit" name="submit" value="Get Quote"/>
			</form>

			 
     </div>
     <!---------------END LEFT PANE------------------->
	 
	 <!-------------MAIN CONTENT AREA----------------->

       <div id="homecontents">
       	   
      <h2 style="font-style:italic">Spotlight
	  <div style="font-size:12px"><?php $today = date("M d, Y"); echo "$today"; ?></div></h2><br>
	  
	  <h2 style="text-align:center">Dow Jones Industrial Average</h2><br>
	     <div align="center">
         <table style="text-align:center; font-size:13px; width:500px;" id="tablesorter" class="tablesorter" border="0" cellpadding="0" cellspacing="1">
					<thead><tr><th style="width:30%; ">Company</th><th>5 Years</th><th>10 Years</th><th>25 Years</th></tr></thead>
	                <tbody>

	  
				   
			        </tbody></table></div>
		
     </div>	 
     <div class="clear"></div>	 
  </div>
</div>

<div id="footer">
      <div id="footercontent">
          <p>2011&nbsp;&nbsp;<a href="contactus.php">Contact Us</a>
                  &nbsp;&nbsp;<a href="aboutus.php">About Us</a><br>
                  &copy;
	      </p> 
      </div>
</div>

</body></html>








@charset "utf-8";
* {
	margin: 0px;
	padding: 0px;
}

/* Body */
body {background: #FFFFFF; font-family:Georgia, "Times New Roman", Times, serif; font-size:12px;}
#wrap { width:925px; margin:auto; cursor:default;}

/*Header*/
#topbar { height:120px;}
#topbar #TopSection {width:1000px; margin:auto;}
#topbar #header { height:65px; background: #456789; }
#sitename {cursor:default; display:block; height:40px; float:left; padding-left:25px; padding-top:7px; font:Georgia, "Times New Roman", Times, serif; font-size:34px; font-weight:normal; color:#FFFFCC;}
h1 .sitename2 { cursor:default; padding-left:15px;   font:Georgia, "Times New Roman", Times, serif; font-size:13px; font-style: italic;}

/* Contents */
#contents {font-size:12px;}
#contents a:hover {text-decoration:none;}
#contents p {color:#666666; line-height:22px;}
#contents h3 {color:#8D6932; font-weight:normal;}

/* Left Pane */
#aboutdiv { color:#666666; float:left; padding:10px; width:146px; margin:5px 2px 2px5px;}
#aboutdiv h2 {padding:5px; display:block;  color:#8D6932; margin:0px 3px 5px 0px; font-family:Arial, Helvetica, sans-serif;}

/* Main Content Area */
#homecontents {border-left:solid 1px #E1D2A6; border-bottom:solid 1px #E1D2A6; float:left; width:725px; padding:3px 3px 3px 20px; margin:5px 5px 5px 0px; }
#homecontents p, left p, right p {margin:10px 0px 10px 0px;}
#homecontents h2 {display:block;  border-bottom:solid 1px #E1D2A6; color:#8d6932;  font-size:22px;}
#homecontents h2 a{text-decoration:none; color:#8d6932;}
#homecontents #date { width:100px; padding:3px 3px 3px 20px; margin:0px 0px 0px 0px;}
#homecontents form {width: 200px;}

/* Footer  */
#footer {  width:975px; height:50px; padding:30px 0px 0px 15px; }
#footercontent { color:#666666; text-align: center; margin:auto; padding:10px;}

Open in new window

0
Comment
Question by:dmalovich
  • 3
  • 3
6 Comments
 
LVL 16

Expert Comment

by:SSupreme
ID: 35044525
Try this:
#footer { height: 50px; margin: 0 auto; padding: 30px 0 0 15px; width: 975px;}
0
 

Author Comment

by:dmalovich
ID: 35044688
I tried what you suggested and it works fine in IE as it has before, but in firefox it shows up at the top of the page just below the header (not at the bottom of the page as would be expected for the footer.
0
 
LVL 16

Expert Comment

by:SSupreme
ID: 35044762
Could you please make a screen shot?
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

Author Comment

by:dmalovich
ID: 35044833
Here is a screen shot of the page with the footer in the wrong spot.     jpg file included
Untitled.jpg
0
 
LVL 16

Accepted Solution

by:
SSupreme earned 500 total points
ID: 35044871
Try add overflow: hidden; to #wrap in CSS.
0
 

Author Closing Comment

by:dmalovich
ID: 35045027
awesome. thanks
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to Left-Align Navigation bar? 4 34
two div layout one vertical other horizontal. 5 36
push Book Today button to right 10 36
Input box width 6 32
When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…

839 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