Hi,
I'm having trouble creating a gradient with a :before element on top of an background image.
Can you tell me if there's anything wrong with the css?
header:before {
content: "";
display: block;
width: 100%;
height: 70mm;
position: absolute;
top: 0mm;
left: 0mm;
background-image: linear-gradient(to bottom, rgba(0,87,149,1) 0%, rgba(0,87,149,0) 100%);
}
I even tried using multiple backgrounds, but was unable to get a gradient.
I'm having trouble creating a gradient with a :before element on top of an background image.
Can you tell me if there's anything wrong with the css?
header:before {
content: "";
display: block;
width: 100%;
height: 70mm;
position: absolute;
top: 0mm;
left: 0mm;
background-image: linear-gradient(to bottom, rgba(0,87,149,1) 0%, rgba(0,87,149,0) 100%);
}
I even tried using multiple backgrounds, but was unable to get a gradient.