Twitter bootstrap div alignment [duplicate]

2019-07-16 14:09发布

问题:

Possible Duplicate:
How to center form in twitter bootstrap?

I want to align my form in the center of the page, is there nay way to do it in twitter bootstrap? or i have to do it in same old custom way?

回答1:

You need to use the grid system. Try the following:

<div class="span3 offset3">
   <form></form>
</div>