Hi there,
I am trying to use CSS to change an element from Row to Column when on screen sixe below MD (766px).
I have tried searching around here and using Inspector, however have got this together, yet nothing seems to be working.
I am wanting to change this on a Headline Element with the class: SM-row-to-column
I have tried each of the below and neither have worked.
@media (max-width: 766px){
.SM-row-to-column {
flex-direction: column !important;
}
}
and
@media (max-width: 766px){
.SM-row-to-column {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: horizontal;
-ms-flex-direction: column !important;
flex-direction: column !important;
align-items: center !important;
}
}
and
@media (max-width: 766px){
.SM-row-to-column {
display: flex;
flex-direction: column !important;
}
}
You help would be much appreciated.
Thanks, Tom.
