Site logo

[Resolved] Need a full-width container in some places, but inside-article forces padding.

Home Forums Support [Resolved] Need a full-width container in some places, but inside-article forces padding.

Home Forums Support Need a full-width container in some places, but inside-article forces padding.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2476689
    Mark

    I am using the default padding on containers which is fine for the majority of my site. However there are a small number of containers where I would like the container to have no left or right padding. However, I’m finding is that padding is set on .inside-article and all of my containers (divs) on each page are within inside-article. So how would I create containers that have no padding?

    PS. I tried adding a full-width-content CSS class to override the padding, but all this ended up doing was overriding padding on text columns and sub-containers

    .full-width-content {
    padding: 0px !important;
    }

    #2476744
    David
    Staff
    Customer Support

    Hi there,

    can i see a page on your site where you would want to apply this ?

    #2476751
    Mark

    Hiya

    https://paiyroll.com/

    The first block (dark blue) is the one I want to be full-width,

    #2476754
    David
    Staff
    Customer Support

    In the blocks toolbar their are some alignment options, one of which is Wide Width. That should do it.

    Alternatively, and what we recommend is to make the Pages Content Container Full width:

    https://docs.generatepress.com/article/content-container/

    This makes it 100% wide, and removes theme padding.
    Then use GB Container Blocks to create full width and contained sections.

    #2476785
    Mark

    Thanks – I have set both CONTAINER and INNER CONTAINER to Full Width but no change.

    #2476789
    David
    Staff
    Customer Support
    #2476878
    Mark

    Perfect – thankyou that worked.

    #2477065
    David
    Staff
    Customer Support

    Glad to hear that !

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