Solved

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

Posted on 2011-03-05
6
346 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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
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.
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…

758 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

20 Experts available now in Live!

Get 1:1 Help Now