-1
Hello
I was making a transparent title and I wanted inside the text to see the background but not the background of the box.
In other words, inside the letters you could see the background image but inside the text I don’t want that white color of the text background.
Here is my HTML, what I can do for the letter Fill is the background image and not the white box?
#geraltudo .conteudocapa h1 {
font-size: 75px;
font-family: 'Tw Cen MT Condensed extra bold', sans-serif;
-webkit-text-stroke: 2px black;
-webkit-text-fill-color: rgb(0, 0, 0, 0);
text-transform: uppercase;
}
#geraltudo .conteudocapa {
position: absolute;
top: 50%;
left: 50%;
margin-right: -50%;
transform: translate(-50%, -50%);
text-align: center;
background-color: rgb(255, 255, 255, 0.7);
padding: 20px;
color: black;
border-radius: 20px;
}
#geraltudo {
background-image: url("/w3images/photographer.jpg");
background-color: red;
height: 500px;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
}
<div id="geraltudo">
<div class="conteudocapa">
<h1>Voar sobre o Paiva</h1>
</div>
</div>
In this case, through the html I put the background would have to be red but without putting the text Fill as red.
The problem is that I don’t have an image as background, I have a video autoplay loop, does it the same way but without the background image?
– David Mv
@Davidmv I answered what was in the question, if you wanted it with video you should have said it was with video. I don’t understand these things, you’ve been on the site for some time and until hj did not learn to ask a simple question... You ask a question, we waste time trying to help you, then you come and say "all I really wanted was something else...". If you turn there with the answer I gave, I no longer answer your questions. Abs
– hugocsl
Okay, I’m sorry for the waste of time I just thought it was the same way. Thanks for the answer the question I will try to take advantage of this to turn around.
– David Mv