There are three bootstrap buttons ( codeply ) and I want the third button on the iphone to slide down, and on the ipad and above all three buttons are on the line, but that the divine conditions <div class="col-xs-6 col-sm-4">
did not work, but the margins / paddings of the buttons worked, because the buttons can be of different widths.
Comes to mind:
Make 2 blocks
<div class="visible-xs">
and<div class="hidden-xs">
, and make 2 blocks with buttons: in the first with<div class="col-xs-6 col-sm-4">
, in the 2nd without these divs. But it is necessary to define the button twice ...Use media queries and connect the class only on iphones, and on other devices this class cannot be defined. Something like
<div class="pseudo-col-xs-6">
. But is it possible in CSS to assign the properties of another.col-xs-6
class to the.pseudo-col-xs-6
class so that the.pseudo-col-xs-6
processed when the column is.col-xs-6
as.col-xs-6
?
Or is there a better way?
Thank!