Skip to content

awhite.ca

Cambridge area web developer

Tag Archives: responsive design

Modify the viewport based on screen width

The following snippet will cause mobile browsers to zoom in 320px of content. Useful for responsive design with fixed widths at the various breakpoints. Depends on JQuery. <script> if ($(window).width()

Posted byAndrewOctober 16, 2012July 3, 2013Posted inCode SnippetTags: javascript, jquery, responsive design
awhite.ca, Proudly powered by WordPress.