gradient div css code example
Example 1: css horizontal linear gradient
background: linear-gradient(to left, red, blue);
Example 2: css horizontal gradient background color
.foo {
background-image: linear-gradient(red, blue);
}
Example 3: gradient css background
background: rgb(166,166,166);
background: linear-gradient(0deg, rgba(166,166,166,1) 0%, rgba(255,255,255,1) 29%);
Example 4: css gradient
background: linear-gradient(Direction (keyword or degrees), color1 10% (10% width), color2 width (it's not neccessary), ...);