Problem solved!
I searched google for a while and found no solution to my problem:
For people with decent resolutions like 1024*768 i need my page to have "overflow-x: hidden;" which I of course have done in my stylesheet HOWEVER this makes my page useless in 800*600 which i would prefer it to work in.
My idea was to change the overflow attribute with javascript after testing whether the innerWidth attribute was less than 900
The testing bit is fine (see code below) however I cant figure a way to change the overflow attribute!
Thanks in advance for any help
Last edited by LukeakaDanish on Mon Apr 17, 2006 11:16 pm; edited 2 times in total
I searched google for a while and found no solution to my problem:
For people with decent resolutions like 1024*768 i need my page to have "overflow-x: hidden;" which I of course have done in my stylesheet HOWEVER this makes my page useless in 800*600 which i would prefer it to work in.
My idea was to change the overflow attribute with javascript after testing whether the innerWidth attribute was less than 900
The testing bit is fine (see code below) however I cant figure a way to change the overflow attribute!
Thanks in advance for any help
| Code: |
|
if (window.innerWidth < 950) { //Here i need to change the "overflow-x" attribute of my <body> tag to "auto" or something } |
Last edited by LukeakaDanish on Mon Apr 17, 2006 11:16 pm; edited 2 times in total
