3

I have a Form class="form-inline center" where class "center" is as following (in style section):

.center { text-align: center }

But I want this class "center" Not to be in effect on small to very small devices. Is there Bootstrap 3 syntax for that?

Calum
  • 1,889
  • 2
  • 18
  • 36
Hidalgo
  • 941
  • 2
  • 14
  • 38

2 Answers2

3

You can try using just media queries.

Something like,

@media only screen and (max-width: 320px) {    
   .center {
       text-align : (your preferred style);
    }
}

Here is a JsFiddle

Similar question : Bootstrap, pull-left for small devices

More information about device and screen sizes : http://css-tricks.com/snippets/css/media-queries-for-standard-devices/

Hope this helps.

Community
  • 1
  • 1
Ren
  • 1,493
  • 6
  • 31
  • 56
  • Jundev. Thank you very much! I will try your approach and follow the references links. – Hidalgo Mar 28 '14 at 12:56
  • One of the references you kindly wrote provided solution to my question. Can I mark your message as the solution to this thread? Or what is the right etiquette for this forum? – Hidalgo Mar 28 '14 at 13:23
  • Glad it worked for you. Yes, you certainly can mark my solution as accepted, since you are the question owner. You can also upvote a question or answer if you find it informative. – Ren Mar 28 '14 at 13:32
3

use the .hidden-xs and .hidden-sm classes on <center> like this:

<center class="hidden-xs hidden-sm">

for more details check out official documentation here Bootstrap Responsive utilities

Munam Yousuf
  • 431
  • 1
  • 6
  • 17