7. Backgrounds
इस लेख का अनुवाद अपने आप होगा। अभी अंग्रेज़ी में दिखाया जा रहा है।
background-color sets a plain colour. background-image uses a picture or a gradient, for example linear-gradient(...). background-size: cover fills the box, and background-position moves the picture.
A gradient needs no image file, so it loads quickly.
उदाहरण देखें
.hero {
background: linear-gradient(135deg, #7c9cff, #ff6bb5);
color: white;
}
✍️ अब आपकी बारी
Give .hero a linear gradient from red to blue.