I am attempting to create a textbox that is transparent behind the text of <p>
. I have looked around and noticed a few examples but they aren’t seeming to work. Here is my code. Maybe I need to change from sections to something else for it to work properly? Any help would be appreciated.
<div class="container"></div>
<section id="welcome-section" class="welcome-section">
<h1>Welcome!</h1>
<p>Welcome fellow writers, producers, employers, and friends.
Here, I showcase my written abilities as well as provide some small-scale services.
Feel free to contact me for inquiries.</p>
</section>
As for my CSS:
.welcome-section {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 100vh;
background: url("elpaso.jpg");
background-size: 1920px 1080px;
background-repeat: no-repeat;
}
.welcome-section > p {
font-size: 3rem;
font-weight: 200;
font-style: italic;
color: rgb(255, 255, 255);
text-shadow: 2px 2px 1px #000000;
text-align: center;
font-weight: 900;
bottom: 150px;
left: 150px;
right: 150px;
}