iPad Layout CSS - Fix Using Viewport Meta Tag

Contact: burt (AT) islandcolors (DOT) com | 415.704.1832

iPad Layout CSS – Fix Using Viewport Meta Tag

How to Fix the Right Side Gap in an iPad

When the Striking Theme was upgrade to Version 3.05, the theme layout broke in the iPad  Mobile Safari and Firefox.

Renders Left Justified

By broke, I mean the layout was not centered in the viewport of the iPad. It acts as if it was left-justified causing s a slight gap on the right-side margin.

There is a CSS Fix

Yes, there is a CSS fix, but this may require putting an extra wrapper around the code and setting the body tag margins to auto. You can follow the thread here on Webmaster World or here at Stackoverflow

A Simpler Better Way

Use the Viewport Meta Tag

Yes, by using one of the new Safari browser directives – that Firefox mobile is supporting too.  ALL you have to do is put the following somewhere in between the <head> and </head> in your template

For those of you using WordPress, insert the following in your function.php file

Follow this link for page full of More Striking Theme WordPress Tips

Leave a Reply

This is A Form

Contact Me

We would love to hear from you! Please fill out this form and we will get in touch with you shortly.