css make entire background gradient code example
Example 1: 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;
}
Example 2: html css background linear-gradient
#background {
background-image: linear-gradient(to left, #4B2C4C , #151F28);
}