I'm trying to vertically (and horizontally) center a div (height and width unknown) in a Bootstrap column. I can horizontally center the div by setting text-align to center. However I am struggling to vertically center the div. Here is a snippet of my code:
<div class="row"> <div class="col-md-8 col-md-offset-2 col-xs-12"> <div style="text-align: center"> <!--this works--> <p>Content goes here</p> </div> </div> </div> Thanks in advance!