- This topic is empty.
-
AuthorPosts
-
December 1, 2010 at 11:19 am #30861
rtmedia
MemberBasically I had problems making my footer stick to the bottom of the page. Some of my pages on my website are taller in height than others and sometimes my footer would appear half way up the page. I’ve managed to get my footer to stick to the bottom of each page. But it’s to far to the bottom now. Meaning that even if there is a small amount of content on the page you have to scroll down to see the footer and I can’t figure out why???
Please look at the following to see what I mean http://www.theskinpharmacy.co.uk/about_company.php
I think it’s something to do with this part of my CSS:
.container {
height: auto !important;
height: 100%;
margin: 0 auto -4em;
min-height: 100%;
padding-right: 20px;
width: 968px;.footer, .push {
clear: both;
height: 4em;
margin: 0 auto;
width: 968px;No matter what I change in my CSS I can’t seem to get my pages so I don’t have to scroll down what looks to be (4em) in order to see the footer on each page (no matter how big the content stretches the container down)
December 1, 2010 at 1:04 pm #71570rtmedia
MemberThanks for pointing out the contact page height. I had that there from before I added the push and sticky footer. The extra div on the contact page is there for a reason as it will allow my client to add more text there via the CMS.
I changed the footer back to height:4em but all that did was make the actual content of the footer further from the bottom.
So you still have to scroll down the page to see the footer… any ideas?
December 2, 2010 at 9:11 am #71376rtmedia
Memberanyone know why you have to scroll down on the page to see the footer when the content isn;t even filling up the height of the browser window?
December 4, 2010 at 12:46 pm #70975rtmedia
MemberHi Virtual,
Really appreciate you taking the time to help me out.
On the code posted above I don’t understand
html:before, #container:before
Do I actually need this in my code or do you mean this is what was there before?
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.