0

browser window width resizing with jquery.

my website have container of 1080px width that contains content for website.

but when site is accessed through screen with less window with than 1080, the horizontal scroll comes in screen and content are not perfectly viewable, to view full content user need to scroll horizontally.

this scroll is removed by zooming in browser window. so I want that when user with low resolution screen visits the site jquery zoom their screen size automatically.

jquery checks resolution or width of window and if resolution is less than 1100px then jquery zooms window. (that we manually do by pressing ).

please help me. Thank You

1
  • take a look at responsive design. Here are some tutorials. You can also get screen size, calculate zoom factor and apply zoom css . (That's litterly what you're asking). But I prefer Klaus' solution. :) Commented Jun 19, 2013 at 9:00

1 Answer 1

1

You should add this meta tag to your html's head. It should give you the effect you want for mobile devices:

<meta name="viewport" content="width=device-width, initial-scale=1.0">
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.