I have the following html and CSS:
.title-wrapper { text-align: left; position: absolute; top: 0; left: 0; background-image: linear-gradient( 90deg, rgb(53,65,76) 0%, rgba(53,65,76,0) 100%); opacity: 0.51; display: block; width: 100%; z-index: 5; padding: 12.5px 0 12.5px 12px; } .title { opacity: 1.0; font-size: 1.3em; font-weight: 600; color: white; } <h1 class="title-wrapper"><span class="title">Example</span></h1> I want to set the opacity of the title-wrapper background-image to 0.51 but I want to keep the opacity of the text at 1.0. How can I do that?
Right now the text looks really pale. I'm guessing the opacity of the title wrapper is affecting the text.