WordPress.org

Forums

Twenty Thirteen
[resolved] How to reduce the height of the header without messing things up? (11 posts)

  1. 008Rohit
    Member
    Posted 1 year ago #

    http://test.techtage.com/

    I'm trying to reduce the height of the header as I'll use the theme on a non-personal site. I don't need such a big header space.

    The problem with using CSS is that the whole structure gets lifted up once I reduce the height of the header.

    Any help would be appreciated.

  2. Andrew
    Forum moderator & snail smusher
    Posted 1 year ago #

    It doesn't have a height explicitly set in CSS to begin with, so you can't do it that way.

    Can you create a Child Theme first? Or use a Custom CSS plugin?

  3. 008Rohit
    Member
    Posted 1 year ago #

    There's a min-height function I think. And I'm already using a child theme.

  4. Andrew
    Forum moderator & snail smusher
    Posted 1 year ago #

    Reduce the min height on the anchor tag that wraps the headings.

  5. 008Rohit
    Member
    Posted 1 year ago #

    Well, that's what I did (I think). See how other things get messed up.

  6. Andrew
    Forum moderator & snail smusher
    Posted 1 year ago #

    Looks like you reduced the height by explicitly setting a "height" of "150px" to the "<header>" - Is that what you're referring to?

  7. 008Rohit
    Member
    Posted 1 year ago #

    Ohh. I think I did that because min-height didn't work.

  8. Andrew
    Forum moderator & snail smusher
    Posted 1 year ago #

    So can you remove that and instead apply a min height of zero on the anchor tag that wraps the headings.

  9. 008Rohit
    Member
    Posted 1 year ago #

    Did that, no use.

  10. Andrew
    Forum moderator & snail smusher
    Posted 1 year ago #

    Try adding a min-height of '0' instead of 'none'.

  11. 008Rohit
    Member
    Posted 1 year ago #

    Andrew, that works like a charm! Thanks. :)

    What was the technical fault with the height being set explicitly?

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic