I am trying to vertically and horizontally center the div banner_title within another div like this...
.box {
text-align: center;
}
.banner_title {
font-size: 32px;
position: absolute;
top: 50%;
width: 100%;
}
.banner_title > div {
background: rgba(0, 0, 0, 0.7) none repeat scroll 0 0;
color: #fff;
padding: 15px;
}
<div class="box">
<img src="http://dummyimage.com/1000x400/b895b8/fff.jpg&text=+">
<div class="banner_title">
<div>
THIS MESSAGE IS A TEST MESSAGE
</div>
<button>
This is a test button
</button>
</div>
</div>
also on https://jsfiddle.net/j90gaawb/
This isn't working for me.
This is what I am trying to achieve...