我希望能夠將包含以下文本的div放在頁面中間。我雖然我將能夠使用「中心塊」級的引導,但它似乎並沒有工作:Bootstrap - 如何將包含文本的div放在中間?
實時預覽: http://codepen.io/anon/pen/tCIlG
Code below:
<div class="row">
<div class="col-md-4 center-block text-center">
I want to center the div that this text is in.I want to center the div that this text is in.I want to center the div that this text is in.I want to center the div that this text is in.I want to center the div that this text is in.I want to center the div that this text is in.I want to center the div that this text is in.I want to center the div that this text is in.I want to center the div that this text is in.I want to center the div that this text is in.
</div>
</div>
可能重複[如何在div中水平居中div?](http://stackoverflow.com/questions/114543/how-to-horizontally-center-a-div-in-a-div) – Sasa 2014-10-30 22:37:13