[Resolved] Mobile header overlap featured image

Home Forums Support [Resolved] Mobile header overlap featured image

Home Forums Support Mobile header overlap featured image

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

    Hi!

    I discovered that the mobile header overlaps the featured image, “cropping” it at the top (especially visible on https://www.stag1.ikigai.se/meningsfullhet/hur-du-hittar-dromjobbet/).

    How can I adjust so that the mobile header and image connects edge-to-edge rather than create a small overlap?

    Best regards,

    /Ola

    #1619810
    David
    Staff
    Customer Support

    Hi there,

    you have this CSS in your site which is causing the issue:

    /* Reducera padding featured image på mobil*/
    @media (max-width: 768px) {
        .post-image-above-header .inside-article .featured-image {
            margin-top: -50px !important;
        }
    }
    #1619859
    Ola

    Oh, sorry!

    That was a dirty fix … Needed to reduce the distance between the post featured image and the header on mobile and I overdid it a bit. Thanks for pointing it out!

    I adjusted my code to:

    @media (max-width: 768px) {
     		.inside-header {
    			padding-bottom: 0px;	
    			}
    		.inside-article {
    			padding-top: 0px !important;
    			}
    }

    Thanks and sorry!

    #1620102
    David
    Staff
    Customer Support

    No problem – glad to hear you resolved it !

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