?
Solved

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

Posted on 2011-03-05
6
Medium Priority
?
388 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
[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
  • 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
Suggested Courses

719 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