195 posts
  • Has been part of the Envato Community for over 2 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

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes