スタイルシートの上下左右の一括指定方法

Posted on 5th 2月 2009 in Web

marginやpaddingの上下左右を一括指定する順番が分からなかった。
上、右、下、左の順で指定するらしい。

[css]
margin top right bottom left;
padding top right bottom left;
[/css]

位置の頭文字が「t」 「r」 「b」 「l」なので、trable(トラブル)と覚えればいいと思った。

comments: 1 » tags: , このエントリをはてなブックマークに追加このエントリをdel.icio.usに追加このエントリをLivedoor Clipに追加このエントリをYahoo!ブックマークに追加

One Response to “スタイルシートの上下左右の一括指定方法”

  1. うせー より:

    いつも悩んでぐぐるのですが、いい覚え方を得ました。ありがとうございます!



Pings responses to this post

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

*

Comment

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>