Site logo

[Resolved] Image in single post to be full width?

Home Forums Support [Resolved] Image in single post to be full width?

Home Forums Support Image in single post to be full width?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1852135
    nomadiceman

    Hi guys,

    I’ve looked at the customiser options and can’t seem to figure this out.

    How can I make the featured image be the full width in mobile. Meaning the image goes right from the edge to the other edge on mobile screen?

    But I need it to be as it is on desktop and tablet too.

    Any tips is appreciated

    #1852157
    Leo
    Staff
    Customer Support

    Hi there,

    Just to confirm, you only want the image to be full width on mobile?

    So remove the space here?
    https://www.screencast.com/t/gnjvKR2YOIiJ

    Let me know 🙂

    #1852167
    nomadiceman

    yes please. exactly

    #1852265
    Elvin
    Staff
    Customer Support

    Hi there,

    Can you try adding this CSS?

    @media(max-width:768px){
    .featured-image.page-header-image-single {
        margin-left: calc(-100vw / 2 + 100% / 2);
        margin-right: calc(-100vw / 2 + 100% / 2);
        max-width: 100vw;
        width: auto;
    }
    
    .featured-image.page-header-image-single img { 
        width: 100%; 
    }
    }

    Expected result – https://share.getcloudapp.com/nOuP2QwY

    #1852277
    nomadiceman

    Ive just unchecked the “display padding around images” in Layout > Blog

    It seems to work.

    how did I miss that ?

    #1852279
    Elvin
    Staff
    Customer Support

    Ive just unchecked the “display padding around images” in Layout > Blog

    It seems to work.

    how did I miss that ?

    Does it fully sort out what you require? Let us know. 😀

    #1852286
    nomadiceman

    I think so. I’m shocked I missed it

    I’ll keep that code incase it doesn’t sort it

    Thanks again

    #1852291
    Elvin
    Staff
    Customer Support

    Nice one. Let us know if you need further help.

    No problem. 😀

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