How to add linear-gradient
colour with background-image
on same element or div
? I want to add background-image
with linear-gradient
on same html
element or div
. But I am unable to do it so. Any help would be appreciated.
Here is my CSS
below:
.dvNav {
flex-direction: column;
display: flex;
padding: 0.5rem 1rem 0 1rem;
background: rgb(28, 3, 25);
/* background: url(/images/amey.png) no-repeat top right; */
background: linear-gradient(
180deg,
rgba(28, 3, 25, 1) 0%,
rgba(35, 1, 26, 1) 35%,
rgba(52, 1, 34, 1) 100%
);
color: var(--white-color);
height: 100vh;
}