-
AuthorPosts
-
March 1, 2021 at 9:55 pm #1284577
Hi!
I just tried all the css I found in the support and nothing is working. My 4 columns are in a color section using this css style “.col-25p”
Here’s the css in there, but it still turn onto 1 column on mobile:
@media only screen and (max-width:767px) {
.col-25p .responsive #top #wrap_all .flex_column.avia-link-column.av_one_fourth {
width:49%!important;
float: left !important;
}
.col-25p.av_one_fourth{
margin-left:1%!important;
}}Thanks!
March 1, 2021 at 10:25 pm #1284580this is the error: the col25p class is misplaced.
.col-25p .responsive #top #wrap_all .flex_column.avia-link-column.av_one_fourth
The css means cascading style sheet
The ID/class which is highest in the DOM tree is named first – then the following ones.
Your class: col25p is definitely not before .responsive – because that is a class in html.
Since I don’t see your page, you have to find out yourself where in the structure your class was set – probably if you set it to the column it is :@media only screen and (max-width:767px) { .responsive #top #wrap_all .flex_column.av_one_fourth.col-25p { width:49%!important; float: left !important; } .av_one_fourth.col-25p { margin-left:1%!important; } }
ist that really what you want?: https://webers-testseite.de/4cols/ ( top columns)
but i guess you want to influence all columns in that color-section – it might be better to place the custom-class to the color-section
and redifine the columns width of all cols in it.custom class on color-section: col50
@media only screen and (max-width:767px) { .responsive #top #wrap_all .avia-section.col50 .flex_column.av_one_fourth { width: 48% !important; float: left !important; } .avia-section.col50 .av_one_fourth:nth-of-type(2n) { margin-left:3% !important; } }
see green columns on test page
March 1, 2021 at 10:49 pm #1284584Thanks! It works!
March 2, 2021 at 4:22 pm #1284798Hi metamorfic,
Glad you got it working for you with Guenni007’s help! :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.