Aim is to apply a class to columns and use it to change their breakpoint so they (and only these columns) render full width (ie mobile view) below 1024px..
Tried this code but not doing the job:
@media only screen and (max-width: 1024px) {
.flex_column.af-column-breakpoint {
display: block!important;
clear:both!important;
width:100% !important;
}
}
Any pointers appreciated. Thanks.
Hi!
Can you please create a temporary admin login and post it here privately? Also, please point out the page you are working on.
Best regards,
Yigit
soz – local host for a couple more days.
It’s not site specific – aim is to target columns in a section using a class and altering the breakpoint for them.
I have moved forwards a little from the above. Now applying class to parent color section and this:
@media only screen and (max-width: 1024px) {
.af-column-breakpoint .flex_column_table {
display: block!important;
margin: 0!important;
}
.af-column-breakpoint .flex_column_table_cell {
float: none!important;
display: block!important;
clear: both!important;
width: 100% !important;
max-width: 100% !important;
margin: 0 0 20px 0!important;
}
}
It works but code feels a little clumsy – is this the best aproach in your opinion?
Thanks, M