razorsese Posted July 25, 2012 Share Posted July 25, 2012 How I can achieve a full screen width div? Currently i'm using this code but when i scroll whit mouse wheel button on the right of the screen the div is not hidden; body{ overflow-x:hidden; } div { margin: 0px -2000px; padding: 0px 2000px; } Quote Link to comment Share on other sites More sharing options...
xyph Posted July 25, 2012 Share Posted July 25, 2012 Why not width: 100% ? Quote Link to comment Share on other sites More sharing options...
razorsese Posted July 25, 2012 Author Share Posted July 25, 2012 I can't because i use 960 GS Quote Link to comment Share on other sites More sharing options...
Mahngiel Posted July 25, 2012 Share Posted July 25, 2012 using hidden overflow on your body is a horrible idea. If a user with less than a 1920x desktop resolution is at half desktop width, they'll be unable to scroll on your content. Assuming your intent is to use a full body background, you can just assign it to <html> Quote Link to comment Share on other sites More sharing options...
beven Posted July 26, 2012 Share Posted July 26, 2012 I think that 100% width is ideal Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.