[Resolved] How to add negative margin to the top of post container?

Home Forums Support [Resolved] How to add negative margin to the top of post container?

Home Forums Support How to add negative margin to the top of post container?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1497904
    Shami

    I want my post container a little on top of the hero header element.
    Just like this:
    https://drive.google.com/file/d/120hzcoa7CAmMujwCEpAKnzTFT9ZwTThV/view?usp=sharing
    How do I achieve that?

    #1498106
    David
    Staff
    Customer Support

    Hi there,

    try this CSS:

    @media(min-width: 1080px) {
        .single-post .page-hero + #page {
            margin-top: -50px;
        }
    }
    #1498141
    Shami

    Thanks. It’s looking good.
    But it’s not working on the pages. Only working on the singleposts.

    #1498156
    David
    Staff
    Customer Support

    Change this line:

    .single-post .page-hero + #page {

    to:

    body:not(.archive) .page-hero + #page {

    #1498733
    Shami

    I want to add border radius of 12px only to the post and page containers.

    #1498769
    Leo
    Staff
    Customer Support

    Can you open a new topic for the separate question?

    I’ll mark this one as resolved.

    Thanks!

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