Answers for "how to make a gradient background fit to the background css"

CSS
2

how to make gradient backgroud cover whole page in html

/*Basically, add html height 100%. This will stretch your gradient.*/
html {
  height:100%;
}

body {
  background-image: /* put gradient here */;
  background-repeat: no-repeat;
}
Posted by: Guest on May-24-2020
1

css color gradient background full height

html {
    height: 100%;
}
body {
    height: 100%;
    margin: 0;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
Posted by: Guest on February-11-2020

Code answers related to "how to make a gradient background fit to the background css"

Browse Popular Code Answers by Language