[ ホーム | 一覧 | 検索 | 最終更新 | ヘルプ ] [ 新規 ]

KAWANO's PukiWiki Plus! - Lecture/InfoDesignB2005/8th/centering のバックアップ(No.2)

AND OR
  • バックアップ一覧
  • 差分 を表示
  • 現在との差分 を表示
  • 現在との差分 - Visual を表示
  • ソース を表示
  • Lecture/InfoDesignB2005/8th/centering へ行く。
    • 1 (2007-02-24 (土) 07:05:44)
    • 2 (2007-02-24 (土) 07:10:26)

センタリングの設定

ブロックレベル要素をページの中央に揃えるには、 margin-???プロパティを利用します。

margin-left: auto; margin-right: auto
margin: auto
margin: 上下のマージン auto
margin: 上のマージン auto 下マージン
</pre>

marginプロパティを使うと、
ブロックレベル要素をページの中央に揃える(センタリング)ことができます。

左右のマージンに「auto」を設定すると、センタリングされます。
上下のマージンには、任意の値のマージンを設定することもできます。



#pre(novervatim){{
h1{
  margin-left: auto;
  margin-right: auto;
}
table{
  margin: auto;
}
</pre>



次へ進んでください。 ---- #navi2(Lecture/InfoDesignB2005/8th,prev,toc,next)

メニュー

  • トップ
  • 授業
  • PukiWiki Log
  • Install Log
  • 道具箱
  • セキュリティ情報
  • RSSアンテナ

大学関係リンク

  • Webメール
  • 健康システム学科
  • 情報メディアセンター
  • 兵庫大学

今日の5件
  • FrontPage(33)
  • Lecture/CompPracC32005/10th(1)
  • Lecture/CompPracC2005/8th/example(1)
  • Lecture/CompPracR2004/11th(1)
  • Lecture/CompPracC2006/11th(1)
最新の5件
2016-04-08
  • Lecture/timetable_2016
  • Lecture
  • FrontPage
2015-09-30
  • Lecture/timetable_2015
2015-04-04
  • MenuBar

total: 1330
today: 1
yesterday: 0
now: 11


リロード   差分   ホーム 一覧 検索 最終更新 バックアップ リンク元   ヘルプ   最終更新のRSS
http%3A%2F%2Fhs-www.hyogo-dai.ac.jp%2F~kawano%2F%3FLecture%25252FInfoDesignB2005%25252F8th%25252Fcentering
Founded by Minoru Kawano.
Powered by PukiWiki Plus! 1.4.7plus-u2-i18n. HTML convert time to 4.326 sec.
Valid XHTML 1.1