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

KAWANO's PukiWiki Plus! - Lecture/InfoDesignB2005/8th/centering の変更点

Top > Lecture > InfoDesignB2005 > 8th > centering
AND OR
  • 追加された行はこの色です。
  • 削除された行はこの色です。
  • Lecture/InfoDesignB2005/8th/centering へ行く。

*センタリングの設定 [#nbbf95cb]

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

#pre(novervatim){{
COLOR(red):margin-left: auto; margin-right: auto
COLOR(red):margin: auto
COLOR(red):margin: COLOR(blue):上下のマージン COLOR(red):auto
COLOR(red):margin: COLOR(blue):上のマージン COLOR(red):auto COLOR(blue):下マージン
</pre>
}}

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

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



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


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

}}

メニュー

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

大学関係リンク

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

今日の5件
  • FrontPage(282)
  • Java(3)
  • Lecture/CompPracC2005/14th/1st(3)
  • Lecture/CompPracC32005/10th(3)
  • Lecture/InfoPrac2005/2nd(2)
最新の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 1.399 sec.
Valid XHTML 1.1