Tagged: color section, focal point, mobile
I’m using the below code from this thread to try to display the image, color, and heading on mobile:
@media only screen and (max-width: 489px) {
#av_section_1 {
background-size: 100% 45% !important;
background-position: 40% 90% !important;
margin-top: -100px;
}
}
However, the background color extends beyond the top and bottom of the image and the header text is positioned too high, overlapping the top edge of the image. I can’t seem to find what to target in inspector or make the right changes via the admin or find others who have solved this.
I don’t need the whole image to display, but I can’t seem to get the position / scale of the image correct so the color and text overlays are positioned correctly (as they look on wider viewports / desktop).
Any advice super appreciated!
Hey newpappa,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
@media only screen and (max-width: 489px) {
#top.page-id-15 #av_section_1 {
background-size: cover !important;
}
}
If you need further assistance please let us know.
Best regards,
Victoria
Brilliant ! Thank you it worked!