196 posts
  • Has been part of the Envato Community for over 3 years
  • Has sold $1+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more

I am working on a design and things are going well. I got stuck with this small issue. Not sure what to do about it.

When I view my site in my phone, things look okay but there are a few things that I want to display inline instead of vertical when viewed on my phone. What is the best way to add these exceptions using bootstrap? Should I add my own media queries to style.css? Would it even over ride the bootstrap queries?

149 posts
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+3 more

You need to use the some specific class prefixes included in Bootstrap to target mobile devices. For example, if you want to keep two columns stacked horizontally, you should use the col-xs- class prefix

<div class="row">
    <div class="col-xs-6">Column 01 sample content</div>
    <div class="col-xs-6">Column 02 sample content</div>

For more information you can go to: http://getbootstrap.com/css/#grid-options