Forums

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

Home Forums CSS [Solved] Full un-fixed background image on open

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #207876
    modiophile
    Participant

    How do I apply a full background image so it spans the entirety of the viewport ONLY on open, whereby once the user starts scrolling they the background no longer covers their viewport. see http://qideas.org/ for example.

    I’m familiar with full fixed background images applied to the body element, however this is different since I do not want a fixed background.

    Thanks!

    #207881
    modiophile
    Participant

    Hmmm I don’t think using absolutely position divs is the key. You still have to give them explicit dimensions. I can’t figure it out using the inspector, thus my question.

    #207954
    modiophile
    Participant

    Thanks Paulie that was it! Interesting that height: 100% translates to whatever the height of the viewport is.

    #207959
    modiophile
    Participant

    The only issue I am running into now, is that the absolute background image is now covering content proceeding it despite putting display: block, and overflow: auto on all blocks.

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