I have a div
tag with .col-xs-12 .col-md-4
and .left
. I want that when the application is started in a pc, the application use the CSS for .col-md-4
.left
, and when is started in a smarthphone, only use .col-xs-12
CSS.
I already test this:
.col-md-4.left {
text-align: left;
}
.col-xs-12 {
text-align: center;
}
<div class="col-xs-12 col-md-4 left">
My Test
</div>
The idea is that when the application is in a pc, the div
will be a .col-md-4
with text-align: left
, and in a smarthphone will be -col-xs-12
with text-align: center