make background fill page css code example

Example 1: CSS make image fill whole background

html { 
  background: url(images/bg.jpg) no-repeat 
    center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

Example 2: how to cover full image in css

body {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

Example 3: full page background image

html { 
  background: url(images/bg.jpg) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

Example 4: background image css fill screen

.Background {
  background-image: url("Your picture name.jpg");
  background-repeat: no-repeat;
  height: 100%;
  background-position: center;
  background-size: cover;
}

Tags:

Css Example