“Gradient linéaire (de haut en bas)” Réponses codées

Gradient linéaire (de haut en bas)

/* A gradient going from the top to bottom
   starting red and finishing orange */

.class {
    background: linear-gradient(to bottom, #f32b60, #ff8f1f);
}
Caffeinated Developer

HTML CSS Background-Gradient

#background {
  background-image: linear-gradient(to left, #4B2C4C , #151F28);
}
Dayanaohhnana

HTML CSS Background-Gradient

background: linear-gradient(#333, #333 50%, #eee 100%);
\\code for a basic gradient background
   #grad {
  background-image: linear-gradient(red, yellow);
}  
Attractive Angelfish

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code