Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap XS version not working on phone and tablet

I am designing my site (danielrojas.net) with Bootstrap and have created a separate layout for the XS viewports. It works beautifully when I resize my desktop browser (Chrome) and when I try it on Responsinator.com or similar.

However, on my actual Android phone and tablet (both using Chrome, tested using the built-in browser as well), the standard version is shown, no matter what. I have included the magic viewport META tag:

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

To no avail. I am using a customized Bootstrap CSS, but even loading the official one, the same error remains.

Other sites (e.g. getbootstrap.com) work fine on both devices. What am I missing?

Thanks in advance!

like image 547
formatc1702 Avatar asked Jan 02 '14 13:01

formatc1702


People also ask

Is bootstrap mobile responsive?

Bootstrap includes a responsive, mobile first fluid grid system that appropriately scales up to 12 columns as the device or viewport size increases. It includes predefined classes for easy layout options, as well as powerful mixins for generating more semantic layouts.

Is bootstrap adaptive or responsive?

Bootstrap is built on responsive 12-column grids, layouts, and components.

What is CSS bootstrap?

Bootstrap is a free front-end framework for faster and easier web development. Bootstrap includes HTML and CSS based design templates for typography, forms, buttons, tables, navigation, modals, image carousels and many other, as well as optional JavaScript plugins.


1 Answers

You are right that you have included <meta> tag. But it is in the frame.

By inspecting your code, Its not there in the main <head>. So Include it in that part also.

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

I'm also not sure, responsive will work on iframe, You should avoid using iframe if its not working.

like image 135
Surjith S M Avatar answered Nov 11 '22 22:11

Surjith S M