Solved

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

Posted on 2011-03-05
6
352 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Strange loading of website behaviour 3 31
Centering a nested div 16 55
jQuery detect if it is a mobile device 3 90
Error on link 14 36
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…

948 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now