Answers for "how to fit background image in a webpage"

1

how to fit background image in a webpage

html { 
  background: url('img.jpg') no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
Posted by: Guest on May-25-2021

Code answers related to "how to fit background image in a webpage"

Browse Popular Code Answers by Language