Welcome to WebmasterWorld Guest from 23.20.221.93

Forum Moderators: not2easy

Message Too Old, No Replies

Layer moving when browser resized

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

Preferred Member from GB 

10+ Year Member

joined:Jan 26, 2004
posts: 636
votes: 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?
3:12 pm on May 10, 2012 (gmt 0)

Preferred Member from GB 

10+ Year Member

joined:Jan 26, 2004
posts: 636
votes: 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.
9:22 pm on June 6, 2012 (gmt 0)

Junior Member

joined:June 5, 2012
posts:49
votes: 0


Ah yep that would do it :)