View Full Version : Margin Limits

04-24-2011, 03: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;

04-24-2011, 03:27 AM
hm still

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

04-25-2011, 08: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