homepage Welcome to WebmasterWorld Guest from 54.161.175.231
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

    
Fixed + absolute div
mansgdf




msg:4391306
 4:57 pm on Nov 26, 2011 (gmt 0)

Hi all,

Looking for a css way to have a div with a certain distance from the top of page, say 50px, before scrolling down and then, once you start scrolling down, it gets position:fixed; to the very top of page

 

mansgdf




msg:4391989
 12:08 pm on Nov 29, 2011 (gmt 0)

The social buttons on this page are an example

[slate.com...]

Skier88




msg:4392324
 4:08 am on Nov 30, 2011 (gmt 0)

I think you're going to have to use javascript for that.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved