kbo004 Posted October 14, 2009 Share Posted October 14, 2009 Ok, I am trying to change the styling of the body tag when the browser detects a certain screen resolution. This detects the resolution, but I can't get it to change the body. Please help. function bodychange(){ document.body.style.margin-left = "0px"; document.body.style.margin-right = "0px"; } if ((screen.width==1280) && (screen.height==1024)){ bodychange(); } 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.