Associate
- Joined
- 22 Aug 2010
- Posts
- 2,212
- Location
- In My Command Center
Is there a way to determine a users screen size using js or jquery?
im planning my friends new website so no code writen yet but as a bit of background i will be building him a site for his photography.
when the page first loads i want my js or jquery to determine the users screen size and sutably size an image for the background, so if the user has a 22" screen it will fill the whole window or if they resize the window slightly it will manipulte the image to fit.
i hope that made sense, many thanks
im planning my friends new website so no code writen yet but as a bit of background i will be building him a site for his photography.
when the page first loads i want my js or jquery to determine the users screen size and sutably size an image for the background, so if the user has a 22" screen it will fill the whole window or if they resize the window slightly it will manipulte the image to fit.
i hope that made sense, many thanks