How do I add a background image to my website?
RYANBEEBE (19)

How do I add a background image to my website

You are viewing a single comment. View All
qualladoom (357)

As I understand you want to have a fullsize background image. This can be done via

body, html {
  height: 100%;
}

.bg {
  /* The image used */
  background-image: url("img.jpg");

  /* Full height */
  height: 100%;

  /* Center and scale the image nicely */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
katyadee (1274)

@enigma512 Thanks Enigma! We appreciate all your contributions :)