Text-Header Spacing from Top

This support request was posted in Flatbase by tleuxner

Request ID #36241 Resolved
  • Hi,

    I installed the theme yesterday and like it a lot. When using a text header with the “Minimal” layout, the spacing of the red text header from the top is different depending on the view:

    https://kb.leuxner.net/article-category/named/

    If you navigate to the article the text header is further away from the top (it is pushed down a bit):

    https://kb.leuxner.net/article/securing-transaction-signatures-using-acls/

    This creates a bit of an uneasy effect as the header “jumps” when browsing articles vs categories.

    Another little thing I noticed is in regard to the idents of “pre” tags. My configuration snippets look fine in the editor but they lose all the indent when rendered inside the article – well some do. The same article depicts the problem:

    https://kb.leuxner.net/article/securing-transaction-signatures-using-acls/

    Zone configuration shows no idents while pre-tagged boxes above it correctly display the “whitespace”.

    Regards
    Thomas

    Hi Thomas,

    Thank you for writing. I hope you are doing well.

    We’ll be checking the logo issue.

    With regards to the pre tag, are you using any plugin that may change the styles for it?

    Would you please try adding the following CSS:

    pre, pre code {
        white-space: pre-wrap !important;
    }
    

    Best,
    Juan.

    Thanks Juan,

    I added the CSS to the Custom Section and it works fine now. Much appreciated.

    Regards
    Thomas

    Hi Thomas,

    Thanks for the follow-up.

    Regarding the other issue, it has to do with a CSS inheritance. As you are using the text title option, the logo is rendered in an H1 tag, and it is taking the same size as the article title (and by that, the line height as well). So, you can apply a small fix by adding the following CSS:

    body.single-article #logo h1 {
        font-size: 32px;
    }
    

    Best,
    Juan.

    Excellent. This works now too.

    Thanks for resolving this so quickly.

    Regards
    Thomas

    Hi Thomas,

    My pleasure 🙂

    Have a nice day,
    Juan.

Viewing 6 posts - 1 through 6 (of 6 total)

This topic is marked as resolved

Only the topic author can re-open this thread.

Login to your Account

Welcome back! Please log in to your account by filling the fields below:

Forgot?

Not a member? Create a free account.

Create a Free Account

You're 27 seconds away from some awesome WordPress free stuff, benefits and more. Create a free account and have access to our free products, benefits and more!

Already have an account? Log in
Secure Server