I currently have a centered button on my hero image, but the issue is that I would need to use multiple media queries to ensure it stays centered on all screen sizes.
<style>
.hero-container{
position: relative;
text-align: center;
}
.hero-btn-div{
position: absolute;
top: 50%;
left: 42%;
display: inline-block;
}
.hero-btn{
background-color: transparent;
font: var(--main-sans-serif);
font-size: 1.2em;
border: 1px solid black;
border-radius: 100px;
width: 300px;
height: 50px;
}
</style>
<div class="hero-container">
<img src="images/dream%20of%20winter%20cut.jpg" class="img-fluid" width="1920px" alt="Artwork">
<div class="hero-btn-div"><a href="#"><button class="hero-btn">Button</button></a></div>
</div>