how to set background automatically with my screen height

Solutions on MaxInterview for how to set background automatically with my screen height by the best coders in the world

showing results for - "how to set background automatically with my screen height"
Alan
16 Jul 2018
1body {
2
3    background-image: url("img_tree.gif");
4
5   background-repeat: no-repeat;   
6 background-attachment: fixed;
7  
8   background-position: top center;
9  background-size: contain;
10
11 }
Yannick
07 Mar 2016
1html { 
2  background: url(image.jpg) no-repeat center center fixed; 
3  -webkit-background-size: cover;
4     -moz-background-size: cover;
5       -o-background-size: cover;
6          background-size: cover;
7}
similar questions