Text centered over responsive image
I've researched this problem and tried every combination I can possibly think of to no avail. I'm simply trying to overlay text and a button on top of a responsive image. I got the text on top of the image but for some reason it won't center! I've tried text-center, center-block and more combo's with margin's than I can think of. Hopefully it's something simple. Below is the code and screenshot of desired result. Thank you in advance.
<div class="container-fluid no-padding">
<img src="images/hero_image.jpg" class="img-responsive"/>
<h1 class="call_to_action_header center-block">Have you had your Annual Wellness Visit?</h1>
<p class="call_info text-center center-block">Medicare covers a yearly appointment to discuss your plan of preventive care in the coming year.</p>
<button type="button" class="btn btn-primary call_button text-center center-block">More Information</button>
</div>
.call_to_action_header {
position: absolute;
color: #FFFFFF;
font-family: montserrat;
font-style: normal;
font-weight: 400;
font-size: 50px;
max-width: 630px;
margin-top: -382px;
}
.call_info {
position: absolute;
color: #FFFFFF;
font-family: montserrat;
font-style: normal;
font-weight: 400;
font-size: 25px;
max-width: 630px;
margin-top: -250px;
}
.btn.call_button {
margin-top: -118px;
position: absolute;
text-align: center;
color: #FFFFFF;
background-color: #E26432;
border-color: #A73A0F;
font-size: 19px;
font-family: 'Roboto', sans-serif;
font-weight: 300;
}
.no-padding {
padding: 0px;
}
