linear-gradient(top to bottom)
/* A gradient going from the top to bottom
starting red and finishing orange */
.class {
background: linear-gradient(to bottom, #f32b60, #ff8f1f);
}
linear-gradient(top to bottom)
/* A gradient going from the top to bottom
starting red and finishing orange */
.class {
background: linear-gradient(to bottom, #f32b60, #ff8f1f);
}
how to insert gradient in 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%);
}
linear gradient with image
#show_bg_2 {
background-image:
linear-gradient(to bottom, rgba(245, 246, 252, 0.52), rgba(117, 19, 93, 0.73)),
url('images/background.jpg');
width: 80%;
height: 400px;
background-size: cover;
color: white;
padding: 20px;
}
background with image and gradient
body {
background: #eb01a5;
background-image: url("IMAGE_URL"); /* fallback */
background-image: url("IMAGE_URL"), linear-gradient(#eb01a5, #d13531); /* W3C */
}
css linear gradient
#grad {
background-image: linear-gradient(to right, #f1b1b1 , #82e6e8);
}
css horizontal linear gradient
background: linear-gradient(to left, red, blue);
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