-
Brigitte
Hello Support,
how is it possible to have a background-image in the header and a color gradient over this image?
I could not find an option and also it was not possible with CSS (because only 1 box).
Thanks, Brigitte
-
Hi there,
try adding this CSS to your site:
.site-header { position: relative; } .site-header .inside-header { position: relative; z-index: 1; } .site-header:after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(131,58,180,0.6) 0%, rgba(253,29,29,0.6) 50%, rgba(252,176,69,0.6) 100%); }
This:
background: linear-gradient(90deg, rgba(131,58,180,0.6) 0%, rgba(253,29,29,0.6) 50%, rgba(252,176,69,0.6) 100%);
Is the CSS gradient property.
You can use this site to generate your own:
https://cssgradient.io -
Brigitte
THANKS! It seems to work! 🙂
I used this website https://cssgradient.io, but I did not use “.site-header:after”.
-
Glad to hear that!
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.