White space between page title and content

There is a lot of white space between page title and content whenever there is no featured image. Like this page:
https://soundproofcentral.com/recommended-products/floors/

For posts, there is no problem. I have used the following css which works well for posts but not pages.

.entry-featured {
display: none;
}

Appreciate any help.

Hello @msharmagaur2,

Thanks for asking. :slight_smile:

Please add following CSS under X > Theme Options > CSS:

.page header.x-header-landmark {
    padding-bottom: 2em;
}

.page .x-container>.offset {
    margin-top: 0;
}

.page .entry-content {
    margin-top: 0;
}

If you would like to learn CSS in more detail, I am sharing few resources that you take a look to get started with CSS and an interesting tool that you can use to speed up the development process.

I recommend you to watch following video that will help you to get started with CSS.

https://www.youtube.com/watch?v=MFR4WXiLzpc

Sometimes it can get a bit difficult to find out the right selector to be able to write the required CSS codes. A handy tool that can help you in this is Google Chrome dev tools. I am sharing the resource that you can refer to get started with dev tools.

https://developers.google.com/web/tools/chrome-devtools/css/

https://developers.google.com/web/tools/chrome-devtools/

https://www.youtube.com/watch?v=tP_kXBJWPhQ&t=200s

Thanks.

Thanks. That worked great.

You’re most welcome!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.