[Support request] A class to break out of the container?

Home Forums Support [Support request] A class to break out of the container?

Home Forums Support A class to break out of the container?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #514275
    Chad

    I want to show two pictures side-by-side, and have them break outside of the width of the main container — maybe 30 pixels each side (or even full screen width sometimes).

    I’d use unsemantic grid to put them side-by-side, but was curious if there was already a class in GP that would break it out of the main container?

    If not, how might it be done?

    Thank you!

    GeneratePress 2.0.2
    #514360
    Tom
    Lead Developer
    Lead Developer

    You could try wrapping them in a div, and then applying negative margin to that div.

    <div class="break-outside">
        Your stuff
    </div>
    .break-outside {
        margin-left: -30px;
        margin-right: -30px;
    }
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.