search
LoginSignup
20

More than 5 years have passed since last update.

posted at

updated at

Organization

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

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
What you can do with signing up
20