Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-20-2013, 10:30 AM   PM User | #1
sreynaert
New to the CF scene

 
Join Date: Mar 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
sreynaert is an unknown quantity at this point
My footer won't go to the bottom of the page

Any help with this?

My footer won't go to the bottom of the page:

bestbluesguitarlessonsonline dot com


This is my CSS code for the body, wrapper and footer:


body
{
font-size: 100.01%;
padding: 0px;
position: relative;
text-align: center;
padding:bottom: 60px;
margin: 0px;
height: 100%;


}

#wrapper
{
width:53%;
position:relative;
min-height: 100%;
height: auto !important;
height: 100%

}

#wrapper2
{
width:72%;
float:left;
position: relative;
padding-bottom:20px;
padding-bottom: 50px;


}
#wrapper2 .item-page
{
width: 100%;


#footer-outer
{
float: left;
margin:0 auto;
clear: both;
height:60px;
width:900px;
position: relative;
bottom: 0px;
top: max-height;

}




#footer-inner
{
float:left;
width:900px;
margin:0 auto;
font-size:0.8em;
padding:10px 15px 15px 10px;


}


Hope anyone can help me out.

Thanks
sreynaert is offline   Reply With Quote
Old 03-20-2013, 12:49 PM   PM User | #2
JefferyJamison
New Coder

 
Join Date: Sep 2012
Location: USA
Posts: 13
Thanks: 0
Thanked 2 Times in 2 Posts
JefferyJamison is an unknown quantity at this point
HI ! I put this example i hope you will get your Solution.

html,
body {
margin:0;
padding:0;
height:100%;
}
#container {
min-height:100%;
position:relative;
}
#header {
background:#ff0;
padding:10px;
}
#body {
padding:10px;
padding-bottom:60px; /* Height of the footer */
}
#footer {
position:absolute;
bottom:0;
width:100%;
height:60px; /* Height of the footer */
background:#6cf;
}

And one simple CSS rule for IE 6 and IE 5.5:

#container {
height:100%;
}
JefferyJamison is offline   Reply With Quote
Old 03-20-2013, 02:47 PM   PM User | #3
L0adOpt1c
New Coder

 
L0adOpt1c's Avatar
 
Join Date: Jan 2013
Location: <bed />
Posts: 87
Thanks: 0
Thanked 6 Times in 6 Posts
L0adOpt1c is an unknown quantity at this point
Did you validate both pages?
__________________
Validate, early and often. | Use W3Schools! |
Search for your answer before posting.
For the love of everything electronic, VALIDATE
Zdravstyvutye. Zdarova Chuvok?
L0adOpt1c is offline   Reply With Quote
Old 03-20-2013, 03:40 PM   PM User | #4
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello sreynaert,
You style #footer-outer from both layout.css and position.css. One entry tells #footer-outer to be floated left but also has top positioning, the other entry has position: absolute; but the bottom positioning is being overridden by your conflicting CSS.

Look what happens when you comment out some CSS as highlighted in red below -

layout.css:
Code:
#footer-outer
{
        padding:0;
		position: absolute;
		bottom: 0;
		/*left: 0;
		right: 0; */
}
position.css:
Code:
#footer-outer
{
  height:60px;
  width:900px; 
  /*position: absolute;
  bottom: 0px;
  top: 0px;
  clear: both;
  float: left;
    margin:0 auto; */


}
The push method of building a full height layout has never been my favorite. Look at a better (I think) method here.


When posting code in the forum, please use the code tags, - available with the # button in the post edit window.
This will wrap your code in a scroll box which greatly helps the readability of your post.
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Old 03-20-2013, 04:26 PM   PM User | #5
jerry62704
Senior Coder

 
jerry62704's Avatar
 
Join Date: Oct 2007
Location: Springfield, IL
Posts: 1,049
Thanks: 9
Thanked 82 Times in 82 Posts
jerry62704 is on a distinguished road
I see a lot of duplication of IDs between several sheets. In addition to the ones above, you also duplicate many things in positions.css and personal.css.
__________________
.
.
...and gladly would he learn and gladly teach

Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls
jerry62704 is offline   Reply With Quote
Reply

Bookmarks

Tags
bottom, css, footer, html

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:55 PM.


Advertisement
Log in to turn off these ads.