moving image closer to header on homepage only

  • Author
    Posts
  • #1203658

    fairouzeltom
    Member

    Hi,

    I’m trying to move the image on my homepage closer to the top of the page – ideally, I would like to align it with “about” on the left sidebar.

    I only want this change on the homepage as the other pages are fine.

    Many thanks in advance!

    Site: http://onrelating.com/

    The blog I need help with is onrelating.com.

    #1203720

    Start with this, but edit your main page and remove the blank paragraph that is above the image. The 2.5 top margin is for the pages with titles such as about. The 0 top margin in .home #primary is for the main page. The two require different margins because the about page has a title and the home page does not.

    #primary {
    margin-top: 2.5rem;
    }
    
    .home #primary {
    margin-top: 0;
    }
    #1203750

    fairouzeltom
    Member

    Super, it worked perfectly. Thanks so much!

    #1203831

    You are welcome.

The topic ‘moving image closer to header on homepage only’ is closed to new replies.