Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap 3 disable class for small devices

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?

like image 225
Hidalgo Avatar asked Dec 28 '25 19:12

Hidalgo


1 Answers

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.

like image 193
Ren Avatar answered Dec 31 '25 08:12

Ren



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!