Site logo

Archived topic

Page hero on post

11 replies · Started by Bernhard on March 13, 2021

Viewing posts 1–12 of 12

Hello,
I made a post with a page hero.

The problem I have now is how to set the padding on top. For pages I use

.page-hero {
margin-top: 10px;
}

but it does not work on this post. How can I solve it?

Hi Leo,
strange. There shall be less space between navigation and hero image like here.

OK. Is it possible to set a padding on the left and on the right of the browser window?

OK. But now I have a problem with the other posts with featured image on mobile. There is too much space between the featured image and navigation on mobile. On desktop it's fine.

The css is

@media(min-width: 769px) {
    body.single-post .inside-article .page-header-image-single {
        margin-top: 10px;
    }
}

@media(max-width: 768px) {
    body.single-post .inside-article .page-header-image-single {
        margin-top: 10px;
    }
}

Probably Cloudflare has shown an old version? I checked now over VPN and see the actual code https://share.getcloudapp.com/L1uNjm8N

If you change the browser width of the post you can see at 768 px how the sidebar is removed and the image jumps down.

Oh, I missed this. Now it works. Thank you :)

No problem :)

This archived topic is closed to new replies.