Responsive site is zoomed in when flipping between Portrait and Landscape on iPad/iPhone

You also want to add the maximum scale <meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1″> UPDATED I agree with some of the comments, the declaration should not limit the scaling by the user as this is bad practice. The below is a better approach and I believe that the zooming bug has long since been fixed by … Read more

How do I lock the orientation to portrait mode in a iPhone Web Application?

This is a pretty hacky solution, but it’s at least something(?). The idea is to use a CSS transform to rotate the contents of your page to quasi-portrait mode. Here’s JavaScript (expressed in jQuery) code to get you started: $(document).ready(function () { function reorient(e) { var portrait = (window.orientation % 180 == 0); $(“body > … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)