moving image closer to header on homepage only
-
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: (visible only to logged in users)
-
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; } -
-
- The topic ‘moving image closer to header on homepage only’ is closed to new replies.