How can I vertically center text within floated divs in a slider without setting the height of parent elements?
<div class="floated">
<div class="table">
<div class"table-cell">
<p>text</p>
</div>
</div>
</div>
.floated{
float:left;
}
.table{
display:table;
vertical-align:middle;
height:100%;
}
.table-cell{
display:table-cell;
}
Please note that I am unable to set the height of any parent elements.