...

View Full Version : Margin Limits



Aurora.Light
04-24-2011, 04:02 AM
Hey guys!
when I decrease my browser size from maximum to say 50%, I notice that some websites like youtube, only allow you to scroll left a certain distance, so that "Youtube" is never out of the browser. How do they do this?

Here is my current script:



#page {
width: 1000px;
position: absolute;
left: 50%;
margin-left: -500px;
overflow-x: hidden;
}

Aurora.Light
04-24-2011, 04:27 AM
hm still

VIPStephan
04-24-2011, 09:09 AM
Don’t use absolute positioning.

johnktaylor
04-25-2011, 09:14 AM
You should be using 991px instead of 1000px. Hope this will help you



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum