I'm looking for a very specific look for a site I'm designing and have run into a brick wall. I'd like to "highlight" quotes and <h2> tags, with the background color overlapping (similar to if you used a real highlighter).
This is an example of what I'd like to do:
I've tried several options.
- Trying to edit the style of the tag,
- using background gradients with a slight opacity, etc. and I simply cannot get it to work.
Here's my latest attempt, which looks like garbage as the gradient does not produce the look I am going for, and the background seems to be seen as one element and does not overlap on multiple lines:
.highlight span {
background-image: linear-gradient(#e2e200,#ffff00);
opacity:1;
color: #fff;
display: inline;
padding: 0.45rem;
box-decoration-break: clone;
}
Any thoughts would be greatly appreciated!

rgba()notation forbackground-color.