Archived topic
How to add negative margin to the top of post container?
5 replies · Started by Shami on October 20, 2020
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?
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!