- This topic is empty.
-
AuthorPosts
-
August 6, 2014 at 4:17 am #177904
ianahner
ParticipantOkay guys, I’m fighting this one to no end.
How can I make my footer stick to the bottom? All the normal methods of setting position:absolute is messing up the footer.
[MOD EDIT – Codedump Removed]
August 6, 2014 at 4:44 am #177913Paulie_D
MemberPlease don’t drop a bunch of code on us like that. It’s rarely useful without the accompanying HTML, usually incomplete and hard to read and takes up way to much space on the thread.
Please create a Codepen.io example so show us the problem.
Thanks.
August 6, 2014 at 4:57 am #177914ianahner
ParticipantSorry!!!
Can you point me towards a bit of info on how to accomplish that? You’re speaking greek now. I play with html/css but this forum stuff is new to me.
Thanks!
August 6, 2014 at 5:03 am #177920Paulie_D
MemberGo to Codepe.io and create a new ‘pen’
You will find sections for HTML, CSS & JS…put your relevant code in there, just enough to show the issue…save it and post a link here.
This is a little old…but useful – https://css-tricks.com/forums/topic/a-guide-to-using-codepen-help-us-help-you/
Easy really.
August 6, 2014 at 5:57 am #177934ianahner
Participanthttp://codepen.io/anon/pen/plEDF
I trimmed out all of my middle text and columns and such in the html.
I left the full CSS because I do not know if something that I think is irrelevant might be the cause of my distress. The CSS is very short and simple though.
I also set the background to black. It is originally an image of a textured color, but the text is all light, so I just set the background to black to make it show up. I don’t think that should change anything.
I just can’t get my footer to stay at the bottom without messing up the width of my shell or making the footer reformat all weird…
Sorry about the inappropriate blob of obnoxious code earlier… Now I know… Thanks for the help!
August 6, 2014 at 6:01 am #177935August 6, 2014 at 7:04 am #177943ianahner
ParticipantThats EXACTLY what I was looking for!!!!
Now I just have to dig around to find what you changed..
August 6, 2014 at 7:13 am #177946ianahner
ParticipantWow, now I feel like a moron. When I added the position:absolute it made the footer all odd. I didn’t think to re-specify the width again. Why does it not automatically inherit the width of the shell?
Now this is what is weird:
I copied identical code over to my server, and it isn’t rendering the same way in chrome. In chrome it is exactly the same as before, and it crunches the footer right up under the content.
August 6, 2014 at 7:32 am #177950ianahner
ParticipantDoh… Now I’m a real fool. I was using a standard refresh…
Now my next question may be asking for too much.
Suppose I wanted it so that if they were to resize the window too small for the content, THEN the footer was pushed down to the bottom of the content. If their window is larger, the footer stays at the bottom as it does right now.
Currently, if the text runs off the page, the header covers the text. Any ideas?
August 6, 2014 at 10:06 am #177993ianahner
ParticipantIf the page content is too long and requires a user to scroll down, the footer gets superimposed over the top of the scrolling content. I want it to be pushed to the bottom of the content even if that is off of the page.
If the text is shorter than the page I want it to sit at the bottom of the page, but I want it BELOW the page content no matter what else happens.
August 6, 2014 at 10:10 am #177994ianahner
ParticipantFor more detail, when the page loads, if the footer loads over the top of the content, when you scroll up, the footer scrolls up too… The footer should reside at the bottom of the content, but never ABOVE the bottom of the page.
Does that make any more sense?
August 6, 2014 at 10:52 am #178005Paulie_D
MemberSo what you actually want is a sticky footer.
Search for it on CSS-Tricks…it’s a thing.
August 6, 2014 at 10:57 am #178009ianahner
ParticipantHard to search when I didn’t know the search term… I’ll look for sticky footers…
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.