Site logo

Archived topic

How to add negative margin to the top of post container?

5 replies · Started by Shami on October 20, 2020

Viewing posts 1–6 of 6

Hi there,

try this CSS:

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

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

Change this line:

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

to:

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

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

Can you open a new topic for the separate question?

I'll mark this one as resolved.

Thanks!

This archived topic is closed to new replies.