html boutique

Perfect Full Page Background

This will make your background fill up your whole screen / page; no matter how much you zoom out or in, it will always remain perfectly full. Code below.

html {

        background: url(your background url) no-repeat center center fixed;

        -webkit-background-size: cover;

        -moz-background-size: cover;

        -o-background-size: cover;

        background-size: cover;

}

Your code should already have the background url, no-repeat, etc. If it doesn’t, just copy and paste it in under: body {

If your code already has that, just copy what is bolded!

Posted 2 years ago
  1. hungry-ghost-girl reblogged this from htmlxboutique
  2. romagray reblogged this from htmlxboutique
  3. ekwitycom reblogged this from htmlxboutique
  4. htmlxboutique posted this