Compass Background Gradient
Compass Background Gradient Just as you can declare the background of an element to be a solid color in CSS, you can also declare that background to be a gradient. Using gradients declared in CSS, rather using an actual image file, is better for control and performance. Gradients are typically one color that fades into another, but in CSS you can control every aspect of how that happens, from the direction to the colors (as many as you want) to where those color changes happen. Let's go through it all. Gradients are background-image While declaring the a solid color uses background-color property in CSS, gradients use background-image . This comes in useful in a few ways which we'll get into later. The shorthand background property will know what you mean if you declare one or the other. .gradient { /* can be treated like a fallback */ background-color: red; /* w