NO.64 パディング
パディングでは、マージンとは違って内部の余白を指定します。
テーブルでいうとcellpaddingに当たります。
ページ下部の応用を
前回(マージン)
と見比べてみると違いがよく分かると思います。
padding-top,padding-right,padding-bottom,padding-left
上下左右の
パディング
を個別に指定できます。
Value: <length> | <percentage> | auto
This source is test.
padding
上下左右のパディングを
一括指定
できます。
Value: [ <length> | <percentage> | auto ]{1,4}
This source is test.
This source is test.
This source is test.
上記の内容を応用
◆HEAD内の記述
◆BODY内の記述
test:
padding-top:15px;padding-bottom:16px;padding-right:17px;padding-left:18px;
test:
padding:20px 30px;
◆実行例
test:
padding-top:15px;padding-bottom:16px;padding-right:17px;padding-left:18px;
test:
padding:20px 30px;
前に戻る
次に進む
SEO
掲示板
[PR]
爆速!無料ブログ
無料ホームページ開設
無料ライブ放送