Posted By: Anonymous
I’m trying to follow a very basic example. Using the starter page and the grid system, I was hoping the following:
<div class="row"> <div class="span12"> <h1>Bootstrap starter template</h1> <p>Example text.</p> </div> </div>
…would produce centered text.
However, it still appears on the far left. What am I doing wrong?
This is for Text Centering (which is what the question was about)
For other types of content, see Flavien’s answer.
Update: Bootstrap 2.3.0+ Answer
The original answer was for an early version of bootstrap. As of bootstrap 2.3.0, you can simply give the div the class
Original Answer (pre 2.3.0)