This happens because the bs grid uses left alignment, so it will actually stay 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) { ... }
Then for smaller devices you can do this:
First, set 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;
}
}
Just assign the class the desired column, and the order will be reversed.
EDIT: Of course, 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 placements to the parent element.