Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-19-2012, 11:31 PM   PM User | #1
Skiroid
New Coder

 
Join Date: Aug 2011
Posts: 38
Thanks: 6
Thanked 0 Times in 0 Posts
Skiroid is an unknown quantity at this point
A sort of fixed position

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?

Last edited by Skiroid; 02-20-2012 at 01:22 AM..
Skiroid is offline   Reply With Quote
Old 02-20-2012, 01:51 AM   PM User | #2
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,447
Thanks: 0
Thanked 496 Times in 488 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
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.
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:06 PM.


Advertisement
Log in to turn off these ads.