Support » Fixing WordPress » How to remove space in between Header & Slider

Viewing 8 replies - 1 through 8 (of 8 total)
  • C W (VYSO)

    (@cyril-washbrook)

    Insert this into your stylesheet:

    .home .content-block {
       margin-top: 0;
    }

    Alternatively, you could perhaps remove the following line from theme.css:

    .content-block {
       margin-top: 55px;
    }

    However, I probably would not do that, because pages without a slider might need this margin-top declaration to create some space between the header and content area.

    Jenish

    (@jenishparmar89gmailcom)

    I tried both of code but its not working.

    You made a typo.

    .home .content-block {
       margin-top: 0;
    }

    Should be

    .home .content_block {
       margin-top: 0;
    }

    (underscore instead of dash)

    Jenish

    (@jenishparmar89gmailcom)

    I have made a change but it not worked hence restore it.

    C W (VYSO)

    (@cyril-washbrook)

    Sorry no, that’s my fault. The correct rule is:

    .home .content_block {
       margin-top: 0;
    }

    I accidentally wrote a hyphen instead of an underscore.

    Jenish

    (@jenishparmar89gmailcom)

    Badluck.. Thanks but still not working.. 🙁

    C W (VYSO)

    (@cyril-washbrook)

    It’s working here. Try refreshing the page in your browser.

    Jenish

    (@jenishparmar89gmailcom)

    Thank you So much Man..

    Its working 🙂 (y)

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to remove space in between Header & Slider’ is closed to new replies.