Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1029664

    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!

    • This topic was modified 6 years ago by newpappa. Reason: Removed request for focal point on desktop to make the ticket more specific
    #1030467

    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

    #1030504

    Brilliant ! Thank you it worked!

    #1030771

    Hi,

    Great, glad we could help. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.