• Hello everyone.

    I just started to change the Theme “Catch Box” and create my own layout.
    Since few days I’m searching the line in my stylesheet where I can finally delete the space between my header and the menu and between the posttitle and the text.

    I get nuts with it, because I can’t find it anywhere.

    Can anyone help me?

    Here is my blog to see what I mean: https://www.project-beautiful.de/wordpress

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Alenija,

    If you want to remove some of the space, the properties you’re looking for are padding or margin. So to remove the space between the post title and text, open up your style.css file and look around line 798. You should see a block like this:

    .entry-content, .entry-summary {
      padding: 2em 0 0;
    }

    You can see the top-padding is set to 2em. You can halve the distance by setting it to 1em or even replacing it altogether with 0.

    Removing the space between the header and the menu is slightly more far-reaching, however, because the padding is coming from the <hgroup> tag in your header.

    On approximately line 87, look for this block:

    #branding hgroup {
      margin: 0 3%;
      padding: 2.5em 0;
    }

    You’ll notice the top/bottom padding is set to 2.5em, with left/right set to 0. If you want to just remove the bottom padding, you could replace this part:
    padding: 2.5em 0;
    to this:
    padding: 2.5em 0 0;

    Hope that helps.

    Thread Starter Alenija

    (@alenija)

    Oh god thank you soo much!

    I was searching like crazy and I changed probably all of the padding lines already to try out what happens. I didn’t know I have to add one “0” for killing that annoying space under my header.

    The other space is gone as well.

    You saved my day ??

    Glad you got it figured out. Seems like this topic is resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Too much space under Header and Posttitle’ is closed to new replies.