Forums

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

Home Forums CSS CSS Background: similar to fixed and cover, but repeat vertically?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #39451
    AngelaStucky
    Participant

    Does anyone know if this is possible? I am trying to create a background that repeats vertically, but will fill the entire width of a screen, no matter how large or small the screen is. Similar to the way this code below would operate, but repeating on the y-axis, so therefore not fixed:
    body {background: url(images/bodybg2.png) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    }
    Please help! Thanks!
    Angela

    #108230
    TheDoc
    Member

    Off the top of my head, you would need to use some JS. Even then, I’d want to use background-size, which has no ie7/8 support.

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