Is it possible to apply a linear-gradient
color along with a background-image
on the same div
element in HTML? I've been trying to achieve this but haven't been successful so far. Any suggestions would be greatly appreciated.
Below is the snippet of my CSS
:
.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;
}