...

View Full Version : A sort of fixed position



Skiroid
02-19-2012, 11:31 PM
Hi.

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?

felgall
02-20-2012, 01: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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum