WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to remove space in between Header & Slider (9 posts)

  1. Jenish
    Member
    Posted 7 months ago #

    Hi !

    please help me to remove space in between Header menu bar and slider.

    please check it : http://www.jenishparmar.in

  2. C W
    Member
    Posted 7 months ago #

    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.

  3. Jenish
    Member
    Posted 7 months ago #

    I tried both of code but its not working.

  4. Senff
    Member
    Posted 7 months ago #

    You made a typo.

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

    Should be

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

    (underscore instead of dash)

  5. Jenish
    Member
    Posted 7 months ago #

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

  6. C W
    Member
    Posted 7 months ago #

    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.

  7. Jenish
    Member
    Posted 7 months ago #

    Badluck.. Thanks but still not working.. :(

  8. C W
    Member
    Posted 7 months ago #

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

  9. Jenish
    Member
    Posted 7 months ago #

    Thank you So much Man..

    Its working :) (y)

Reply

You must log in to post.

About this Topic