background linerar gradient top to bottom code example
Example 1: linear-gradient(top to bottom)
/* A gradient going from the top to bottom
starting red and finishing orange */
.class {
background: linear-gradient(to bottom, #f32b60, #ff8f1f);
}
Example 2: html css background linear-gradient
background: linear-gradient(#333, #333 50%, #eee 100%);
\\code for a basic gradient background
#grad {
background-image: linear-gradient(red, yellow);
}