WordPress Code Snippets

A fresh mix of code snippets and tutorials

CSS Viewport Tricks

229

Note to self: you can specify various viewport properties such as initial-scale and user-zoom via <meta> tags or directly via CSS.

So we can specify viewport properties in the markup via <meta> tag:

..or we can specify viewport properties in the stylesheet via the @viewport query:

And of course you’ll want to include a special query if supporting Microsoft’s Internet Explorer:


Show Support

Like our new Facebook Page to show support!