Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Using VH for background-image

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #240665
    tjgriffiths1
    Participant

    Hi all,

    I am experimenting with using VH for styling the background-image. I am finding that when setting this to 100vh I am seeing a gap of around 5px at the bottom of the screen.

    Any ideas?

    Thanks in advance.

    #240666
    Paulie_D
    Member

    Can you demo that?

    I wouldn’t normally expect to see a background image size in vh…more like % or with a keyword.

    #240679
    tjgriffiths1
    Participant

    Hi Paulie_D,

    Thanks for such a quick response.

    Forgive me, it’s my first Codepen. Hope this is OK.

    http://codepen.io/tjgriffiths1/pen/grzVbr

    #240680
    Paulie_D
    Member

    You hadn’t zeroed out all the margins…a good reset CSS would have done that for you.

    Then you stuck in that margin-top:-5px in the header or something…that was probably it.

    http://codepen.io/Paulie-D/pen/KzROzQ

    #240681
    tjgriffiths1
    Participant

    That sorted it. You are awesome Paulie_D, as always.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.