一括指定の覚書
いつも忘れちゃうから書いておく。
margin等の一括指定
margin { 4辺全て; } margin { 上下 左右; } margin { 上 左右 下; } margin { 上 右 下 左; }
backgroundの一括指定
background { #FFF url(img.gif) repeat attachment position; } repeat: (repeat|repeat-x|repeat-y|no-repeat) attachment: (scroll|fixed) position: (長さ|%|キーワード) 長さ: 単位付き数値 %: 表示するボックスの左上からの位置と画像の左上からの位置を重ねて指定 例: 0% 0% キーワード: (left|right|center|top|bottom)
fontの一括指定
font: [style variant weight] size[/line-height] family; style: (normal|italic|oblique) variant: (normal|small-caps) weight: (normal|bold|bolder|lighter)