Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Fixed Footer? Re: Fixed Footer?

#76232
Rob MacKay
Participant

Oh that fixed footer is easy. No the HTML code is just a div… what you would do is something like this:

Code:

Code:
#footer {

height:100px;
width:100%;
position:fixed;
bottom:0px;
left:0px;
background:red;

}

background is red so it’s visible.

Fixed position is relative to the browser window and nothing else. So if you set something as fixed it will look where it is in the browser window and stay there, not scrolling with the content.

here is something I wrote on the subject… :)

http://alteredaspect.info/the-art-of-css-positioning/

You’re knowledge of HTML and CSS seems a little lacking, which isn’t a bad thing – but I would suggest spending a little more time learning and then you will be less confused :D