Thursday 29 June 2017

How to add full screen background image using CSS.




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

No comments:

Post a Comment