Solved

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

Posted on 2011-03-05
6
357 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

CSS3 Custom checkboxes This article shows how to style the checkbox form element using only CSS. Works in: Chrome, FF, Safari, Opera, IE9+ Uses modernizr.js to check for :checked pseudo class, falling back to plain old checkboxes (IE8 and bel…
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 Micro Tutorial users will learn how to embed custom fonts into websites using @font-face in CSS Select a font: Ensure the EULA allows you to use @font-face: Download the font: Get the browser-compatible files you need: Edit your CSS       - Name …
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …

770 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