This is because the Bs grid uses left alignment, so it will really get image->text->text->image, but you can create a specific css class for these columns using @media{}
, for example:
These are the @media used by bootstrap4
@media (min-width: 576px) { ... }
@media (min-width: 768px) { ... }
@media (min-width: 992px) { ... }
@media (min-width: 1200px) { ... }
So for smaller devices you can do so:
First, define the element pai
with display:flex;
and flex-direction: column;
, then set the column order:
@media (max-width: 768px) {//aqui você ajusta o tamanho máximo do display para ter a alteração
.alinhamento{
order:2;
}
}
Simply assign the class to the desired column, and the order will be reversed.
EDIT: Of course the changes should be made according to the need of your code and the amount of elements you would like to change the order, relating your positions in the parent element.
Hi! You can send the code snippet or an image of how it should look?
– Mariana Beilune Abad