Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Using custom backgroud

xtantkxtantk New
edited August 2012 in Vanilla 2.0 - 2.8

Hello!

I liked your theme and have used it in my forum. Is it possible to make the background cover the whole site? I changed it in my own and I noticed there's a white space after I scroll pass the background's bottom area.

Comments

  • KasperKasper Scholar of the Bits Copenhagen Vanilla Staff

    This should do the trick:

    .your-element {
        background: url(path-to-bg) no-repeat center center fixed;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
    }
    

    Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub

Sign In or Register to comment.