View Full Version : A sort of fixed position

02-20-2012, 12:31 AM

I was on the Saints Row website (http://www.saintsrow.com/) the other day and liked the footer thing which appears fixed to the bottom but when scrolled all the way down it reveals a bit more. Also, this site (http://www.wow-professions.com/) has something similar. One of the adverts down the side fixes itself when you scroll down.

Is this done using just HTML & CSS if so, how is it done?

02-20-2012, 02:51 AM
For something to scroll sometimes and be fixed other times you need JavaScript to test where it is positioned in order to decide where it should be next. You can only do it with CSS if you want it permanently fixed in position either relative to the browser or relative to its container.