I have multiple slides using the jQuery slidemaster plug in, I want the text to always be centered, vertically and horizontally but I am having trouble vertically centering the text.
I have tried using margin: 0 auto; and vertical-align: middle; but it doesn't seem to be working, maybe I am using them on the wrong elements.
http://codepen.io/anon/pen/eBMoBq
.ms-slide p, .ms-slide h1 {
color: white !important;
text-align: center;
margin: 0;
}
.ms-slide {
background: rgb(213, 28, 41);
width: 1266px;
height: 138.109px;
left: 5084px;
}
<div id="masterslider-md" class="master-slider ms-skin-default">
<div class="ms-slide" style="background: #590056;">
<div class="slide-content">
<h1>10,795</h1><p>some text about number</p>
</div>
</div>
</div>