My site is not available for displays smaller than 10″. How can I determine the size of the screen to block access to the site at resolutions below 10″? Thanks.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t detect the user’s screen size. The only thing that might be available to you (and can be easily spoofed) is the display resolution in pixels.
To apply a stylesheet only if your content has more than XYZ px room, I recommend use of
widthmedia queries.