[Resolved] Stretch DIV Container Across Content Area

Home Forums Support [Resolved] Stretch DIV Container Across Content Area

Home Forums Support Stretch DIV Container Across Content Area

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

    I have a DIV container that I would like to stretch the color across the entire content area. Right now it is being affected by the padding. What CSS would I use to accomplish this? It is the blue area that has the header “Connect” and contains the email address and social media icons.

    Is there also a way to stretch this color across the entire screen area? Thanks!

    #1037308
    David
    Staff
    Customer Support

    Hi there,

    edit the group block and change its Alignment to full width ( icons in the block tool bar ).
    Then use the CSS class you added to target the inner container and limits it width and margins:

    .homepage-connect .wp-block-group__inner-container {
        max-width: 830px;
        margin-left: auto;
        margin-right: auto;
    }
    #1037441
    Greg

    That worked beautifully! Thanks again David!

    #1037568
    David
    Staff
    Customer Support

    You’re welcome

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