Here is a snippet of code showcasing parent and child elements along with their current styling
main #main-content-wrapper div {
padding: 0;
margin: 0;
}
img {
border-radius: 8px;
}
.overlay1 {
position: absolute;
top: 0;
right: .1px;
bottom: 399px;
height: 100%;
width: 100%;
opacity: 0;
transition: all .5s ease-in-out;
background-color: #088508;
}
.overlay2 {
position: absolute;
top: 0;
right: .1px;
bottom: 399px;
height: 100%;
width: 100%;
opacity: 0;
transition: all .5s ease-in-out;
background-color: #088508;
}
.overlay3 {
position: absolute;
top: 0;
right: .1px;
bottom: 399px;
height: 100%;
width: 100%;
opacity: 0;
transition: all .5s ease-in-out;
background-color: #088508;
}
.jadePackage1:hover .overlay1 {
opacity: 1;
background: rgba(8, 133, 8, 0.53);
}
.rubyPackage1:hover .overlay2 {
opacity: 1;
background: rgba(100, 43, 46, 0.53);
}
.sapphirePackage1:hover .overlay3 {
opacity: 1;
background: rgba(0, 0, 255, 0.43);
}
.text {
color: white;
font-size: 20px;
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
text-align: center;
}
.jadePackage1 {
background-image: url("https://placekitten.com/400/300");
background-size: cover;
height: 400px;
width: 300px;
}
ul {
width: 370px;
}
ul li {
font-size: 17px;
text-align: left;
/*border: 1px dotted black;*/
}
ul.colorOptions {
list-style-type: decimal;
}
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="482a27272c222432271420362c232e2506">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet"/>
<main id="main-content-wrapper">
<div class="container-fluid" id="travelPackages">
<div class="row">
<div class="col-12 col-md-6 col-lg-3 jadePackage1" style="margin-right: 30px; margin-left: 200px; border: 1px solid black;">
<h1 style="font-size: 20px; background-color: white;display: flex; justify-content: center; margin: auto; padding: 0 100px 0 100px; ">The Jade Package <span>$19.99</span></h1>
</div>
</div>
</div>
</main>
I am trying to make the header "The Jade" cover 100% of the top of the photo to create a header overlaid on the image instead of in the middle.
I have experimented with different display settings and widths, but this is the largest size I have achieved so far, close but not quite there yet.