I have a site 1600px
wide and I want to make that fit nicely on mobile only. How can I do with Bootstrap 3. I tried to use col-sm-*
. but also effects o
This is backwards from what Bootstrap is designed for, but you can do this:
.col-xs-4 .col-md-12
.col-xs-4 .col-md-12
.col-xs-4 .col-md-12
This will make each element 33.3% wide on small and extra small devices but 100% wide on medium and larger devices.
JSFiddle: http://jsfiddle.net/jdwire/sggt8/embedded/result/
I think you're looking for the visible-xs
and/or visible-sm
classes. These will let you make certain elements only visible to small screen devices.
For example, if you want a element to only be visible to small and extra-small devices, do this:
You're using a fairly small device.
To show it only for larger screens, use this:
See http://getbootstrap.com/css/#responsive-utilities-classes for more information.