How to make the space between header and text smaller?

  • Unknown's avatar

    Hi!

    I need help to make the headers disappear (e.i News do not need to be shown after clicking the “News” in the menu.

    I also need help to costumize the space between the homepagename “Sandra Törnroth + slogan” on the homepage. I have a picture I want to show off better.

    Is it possible to do so in the CSS? (I use the Obsidian theme)

    /Sandra

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Do you mean you want “News” not to appear in the menu when you’re on that page? This might be possible but most people expect the menu to have the same layout from one page to the next on your site. You run the risk of confusing people if they think they know where they’re clicking but then it’s re-arranged slightly depending on which page they’re currently viewing.

    To change the gap between the title and tag line on the home page you can use this:

    body.home .site-title {
    	margin-bottom: 30px;
    }
  • Unknown's avatar

    Hi!

    No the menu shall remain as it is. I just wanted the spacing to be smaller between the menu and the “text”. I think I solved the “problem” by:

    .full-screen-header .site-header,
    .full-screen-header.admin-bar .site-header,
    .full-screen-header.has-cuebar.site-header,
    .full-screen-header.has-cuebar.admin-bar .site-header,
    .full-screen-header.has-playbar.site-header,
    .full-screen-header.has-playbar.admin-bar .site-header {
      min-height: 0;
      padding-bottom: 2.5em;
      padding-top: 6.25em;
    }

    Thank you!

    /S

  • Unknown's avatar

    You should be able to move everything else up closer to the main menu with this:

    .site-header {
    	padding-top: 4em;
    }
  • The topic ‘How to make the space between header and text smaller?’ is closed to new replies.