Hi all,
i have a question concerning color-sections. I gave the color-sections on my site a specific css-class to change the default settings (25%, 50%,75% etc.). It works fine for desktops but on mobile devices especially in portrait mode the section is too large and I want to resize it via media-queries but can’t get it working. Any idea or help? I must be doing something wrong?
Examples:
Works fine-
#color-60 .container {
height: 60vh !important;
}
Doesn’t work
@media screen all
and (min-device-width: 320px)
and (max-device-width: 480px)
{ #color-60 .container {
height: 33vh !important;
}}
Hey Kesselhut,
Try the code like this:
@media only screen and (min-width: 320px) and (max-width: 480px) {
#color-60 .container {
height: 33vh !important;
}
}
If you need further assistance please let us know.
Best regards,
Victoria
Hey Victoria,
thanks a lot, it worked.
Topic can be closed
Greetings
Henning