homepage Welcome to WebmasterWorld Guest from 54.166.108.167
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

    
Layer moving when browser resized
stevelibby




msg:4451843
 2:51 pm on May 10, 2012 (gmt 0)

I have created a css layout, I now want to add a layer(box) in an absolute position if that's right. However once I resize the browser it moves, what am I doing wrong?

 

stevelibby




msg:4451851
 3:12 pm on May 10, 2012 (gmt 0)

think i have figured it out, when centering the page with a
margin-left:auto;
margin-right:auto;

i added
position:relative

before adding my absolute style.

legaleagle




msg:4462210
 9:22 pm on Jun 6, 2012 (gmt 0)

Ah yep that would do it :)

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