This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Website Design Forum > January 2007 > Hide horizontal scroll bar on resolution above 800 wide





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Hide horizontal scroll bar on resolution above 800 wide
lkeeney

2007-01-19, 8:58 pm

I have designed a web page, and I want to hide the horizontal scroll bar when it is displayed on screen resolutions higher than 800 pixels wide.

I have tried to use javascript to detect the screen resolution and use the javascript to insert "body {overflow-x: hide}" into the page. I can not make this javascript work, but by putting the "body {overflow-x: hide}" directly into the page code it hides the horizontal scroll bar, but it does it on all resolutions.

Can anyone point me to some code that will accomplish what I want to do?

Lawrence
Sponsored Links


Copyright 2003 - 2009 forum4designers.com  Software forum  Computer Hardware reviews