css linear gradient
#grad {
background-image: linear-gradient(to right, #f1b1b1 , #82e6e8);
}
css linear gradient
#grad {
background-image: linear-gradient(to right, #f1b1b1 , #82e6e8);
}
how to make a linear gradient in css
/* Add the class name insted of class */
.class {
background: linear-gradient(to top, #000000, #fffffff);
}
css linear gradient
#gradient {
background-image: linear-gradient(180deg, black, red);
}
/* can be applied in many places, as your <body> background or a <div> etc */
linear gradient in 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 (;)
using to in linear gradient css
.gradient {
background-image:
linear-gradient(
to top right,
#ff8a00, #e52e71
);
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us