moonwalkercs Posted June 29, 2006 Share Posted June 29, 2006 how can I get the size of the user's browser and then use this size to control the width of some of my div tags?thanks Quote Link to comment https://forums.phpfreaks.com/topic/13256-browser-size/ Share on other sites More sharing options...
king arthur Posted June 30, 2006 Share Posted June 30, 2006 Is it browser size you're looking for or screen resolution?For screen resolution it's:[code]height = screen.heightwidth = screen.width[/code]For the browser it's:[code]height = document.body.clientHeightwidth = document.body.clientWidth[/code]HTH. Quote Link to comment https://forums.phpfreaks.com/topic/13256-browser-size/#findComment-51138 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.