LoginSignup
20

More than 5 years have passed since last update.

(Twitter) Bootstrapでセンタリングする方法

Last updated at Posted at 2015-09-29

1. 文字センタリング

<p class="text-center">text-center</p>

2. ブロックセンタリング

<div class="center-block">
  <div>block-center</div>
</div>

3. Twitter Bootstrap 2.3.0以降

<div class="text-center">element-center</div>

4. Twitter Bootstrap 2.3.0以前

<div class="row" style="text-align: center">element-center</div>

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
20