Twitter Bootstrap not displaying correctly on mobile devices

August 10th, 2012 by admin Leave a reply »

I have been working on a HTML5/Javascript mobile/desktop application using Twitter’s new bootstrap CSS library found here.  Everything was going along just fine until I tried to view my site on mobile devices, where it didn’t do the formatting I expected it to like Jquery Mobile would do, so I started scratching my head trying to figure out why it wasn’t rendering like it should, then I came across the meta tags for the html.  All I had to add was this line:

<meta name="viewport" content="width=device-width, initial-scale=1.0">

And it renders just like I wanted it to, I would have never thought it would be that simple, but it is. I am really starting to like this library, I will keep you updated at time goes on.

Advertisement

Leave a Reply