“Cómo insertar gradiente en CSS” Código de respuesta

Cómo insertar gradiente en CSS

body{
  /*Radial Gradient*/
  background-image: radial-gradient(#EA52F8 5.66%, #0066FF 94.35%);
  /*Linear Gradient*/
  background-image: linear-gradient(45.34deg, #EA52F8 5.66%, #0066FF 94.35%);
}
Cooperative Cod

Gradiente lineal CSS

#grad {
  background-image: linear-gradient(to right, #f1b1b1 , #82e6e8);

}
rabbit.sol

color de fondo de gradiente horizontal CSS

.foo {
	background-image: linear-gradient(red, blue);
}
Helpless Horse

fondo de gradiente CSS

/*From bottom to top*/
background: rgb(166,166,166);
background: linear-gradient(0deg, rgba(166,166,166,1) 0%, rgba(255,255,255,1) 29%);
GutoTrosla

Cómo insertar gradiente en CSS

body{
  background-image: linear-gradient(45.34deg, #EA52F8 5.66%, #0066FF 94.35%);
}
Cooperative Cod

Gradiente lineal en CSS

The general syntax of linear-gradient is-
background: linear-gradient(gradient direction, color1 , color2 , color3, .....);

Forexample-
background: linear-gradient(46deg,green,blue,yellow,pink);

NOTE: (common mistake) we forget to write the semi-colon (;) 
FIRE IN CODING

Respuestas similares a “Cómo insertar gradiente en CSS”

Preguntas similares a “Cómo insertar gradiente en CSS”

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código