CSS 属性一覧

一覧

属性 機能
all 全CSS属性
display 要素表示レベル block/inline/inline-block/table/table-row/table-cell/none
widthmin/max-width
heightmin/max-height 高さ
marginmargin-top/bottom/left/right margin xx/auto
paddingpadding-top/bottom/left/right padding xx/auto
box-sizing ボックスサイズの算出方法 content-box/border-box
border-styleborder-top/bottom/left/right-style border種類 none/hidden/sokid/double/groove/ridge/inset/outset/dashed/dotted
border-widthborder-top/bottom/left/right-width border幅 1px/thin/medium/thick
border-colorborder-top/bottom/left/right-color border色
border-radius 角の丸み
border-collapse tableにおける線の間隔 collapse/separate
box-shadow box影
background-color 背景色
background-image 背景画像 url(~.png)/'~.png'
background-repeat 背景画像繰り返し repeat/no-repeat/repeat-x/repeat-y
background-position 背景画像表示位置 left/center/right/top/bottom/5px/10%
background-attachment 背景画像固定 fixed/scroll
background 背景一括指定
color 文字色
font-family フォント 'Arial'
font-size 文字サイズ xxsmall/xsmall/small/medium/large/xlarge/xxlarge
font-weight 文字太さ 100/normal/bold/bolder/lighter
font-style 文字スタイル italic/oblique/normal
text-decoration 文字装飾 line-through/underline/overline/none
letter-spacing 文字横間隔 1em/normal
text-align 行揃え auto/left/center/right/justify
line-height 行送り、文字縦間隔 1.5/5%/normal
table-layout table列幅 auto/fixed
white-space 改行 normal/nowrap/pre/pre-wrap/pre-line
text-wrap 改行 normal/none/unrestricted/suppress
float フロート left/right/none
clear フロート解除 left/right/both/none
overflow はみ出し表示 visible/hidden/scroll/auto
position 配置方法 static/relative/absolute/fixed
(pisition: static以外時)top/bottom/left/right 配置位置
(pisition: static以外時)z-index 重なり順序 0~999/auto
media メディア screen/print
list-style-type リスト(ul/li等) disc/circle/square/none
HTML

前の記事

HTML 属性一覧
CSS

次の記事

CSS セレクタ