Hi there,
I’d like to change the order of two layout element inside of a color section, when viewing the page with a mobile phone.
It tried the following code, after I gave the color section a class (kleingruppentraining) and the two 1/2 layout elements (text, picture):
@media only screen and (max-width: 767px) {
.kleingruppentraining > div > .entry-content-wrapper {
display: flex !important;
flex-wrap: wrap !important;
}
.flex_column.picture {
order: 2 !important;
}
.flex_column.text {
order: 1 !important;
}
}
What am i doing wrong?
Cheers,
Sebastian
Hey Misantaller,
How are you testing a mobile or debugger?
Best regards,
Basilis
Hi,
I’m testing it with my mobile.
Cheers,
Sebastian
Hi Sebastian,
Please remove the code above and try this instead:
@media only screen and (max-width: 767px) {
#kleingruppentraining.avia-section .template-page .entry-content-wrapper {
display: flex;
flex-direction: column-reverse;
}
}
Best regards,
Victoria
AWESOME! It worked!! Thanks a lot :)