備忘録的プログラミングリファレンス

用途別インデックス

 CSSプロパティ、メソッドの用途一覧です。

基本

コメントアウト
/* , */
@ルール(at-rule)
@import@media印刷について
一括指定
all
最優先
!important

テキスト、フォント

フォント
colorfontfont-familyfont-feature-settingsfont-kerning font-size font-stretchfont-stylefont-variant font-weight
テキスト配置
letter-spacingline-heightoverflow-wraptab-sizetext-aligntext-align-lasttext-combine-uprighttext-indenttext-justifytext-overflowvertical-alignwhite-spaceword-breakword-spacingword-wrap
回り込み
clearfloat
テキスト装飾(text-decoration-style:line-through;で取り消し線)
text-decorationtext-decoration-colortext-decoration-linetext-decoration-style text-shadowtext-transformtext-underline-position
書式方向
directiontext-orientationwriting-mode
自動挿入
contentcounter-incrementcounter-resetquotes
改行
box-decoration-breakhyphens
ユーザー操作
user-select

 テキストの体裁について詳しくはテキストの体裁ページを参照してみてください。

エレメント、レイアウト

 エレメント全般で使用できる CSS プロパティです。

サイズ
heightwidthmax-heightmax-widthmin-heightmin-widthresize
回転、拡大/縮小、傾斜、移動
transform
スクロール追加
overflowoverflow-xoverflow-y
マージン、パディング、ボーダー
共通
box-sizing
マージン
marginmargin-bottommargin-leftmargin-rightmargin-top
パディング
paddingpadding-bottompadding-leftpadding-rightpadding-top
ボーダー、罫線
全体
borderborder-collapseborder-colorborder-spacingborder-styleborder-width
上辺
border-topborder-top-colorborder-top-left-radiusborder-top-right-radiusborder-top-styleborder-top-width
下辺
border-bottomborder-bottom-colorborder-bottom-left-radiusborder-bottom-right-radiusborder-bottom-styleborder-bottom-width
左辺
border-leftborder-left-colorborder-left-styleborder-left-width
右辺
border-rightborder-right-colorborder-right-styleborder-right-width
角を丸に
border-radius
画像を線に
border-imageborder-image-outsetborder-image-repeatborder-image-sliceborder-image-sourceborder-image-width
アウトライン
outlineoutline-coloroutline-offsetoutline-styleoutline-width
配置
位置調整
bottomleftrighttoppositionz-index
横並び(フレックス)
order
横並び(フレックス)
display:flex;align-contentalign-itemsalign-selfjustify-contentflex-wrapflex-basisflex-directionflex-flow
配列(グリッド)
display:grid;grid-areagrid-auto-columnsgrid-auto-flowgrid-auto-rowsgrid-columngrid-column-endgrid-column-gapgrid-column-startgrid-gapgrid-rowgrid-row-endgrid-row-gapgrid-row-startgrid-templategrid-template-areasgrid-template-columnsgrid-template-rows
背景
backgroundbackground-attachmentbackground-blend-modebackground-clipbackground-colorbackground-imagebackground-originbackground-positionbackground-repeatbackground-sizelinear-gradientradial-gradient
フィルタ、加工
filtertransformtransform-origin
ブレンド
isolationlinear-gradient()mix-blend-moderadial-gradient()
box-shadow
透過
opacity
回転
backface-visibility
立体
perspectiveperspective-origin
段組みを複数列表示(カラム表示)
column-fillcolumn-gapcolumn-rulecolumn-rule-colorcolumn-rule-stylecolumn-rule-widthcolumn-spancolumn-widthcolumns
ページ内移動
scroll-behavior
表示、非表示
visibility

LIST(UL,OL,DL)

 リスト <ol><ul><dl> に使用できる主な CSS プロパティ、@ルール、ファンクション、擬似クラスには以下があります。

リストのマーカー
list-stylelist-style-imagelist-style-positionlist-style-type@counter-style
番号付け
counter-incrementecounter-resetcounter-set@counter-stylecounter()counters()
擬似クラス
:first-child:first-of-type:last-child:last-of-type:nth-child():nth-of-type()

 詳しくはリストのスタイルページを参照してください。

TABLE

 <table> エレメントに関する CSS プロパティには主に以下があります。

セル
empty-cellstable-layout
罫線
borderborder-collapseborder-spacing
キャプション
caption-side
行ごとの背景
:nth-child()疑似クラス:nth-of-type()疑似クラス

 詳しくは表のスタイルページを参照してください。

メディア(イメージ、音声、動画)

object-fitobject-position
画像
image-rendering

CSSアニメーション

animationanimation-delayanimation-directionanimation-durationanimation-fill-modeanimation-iteration-countanimation-nameanimation-play-stateanimation-timing-functiontransitiontransition-delaytransition-durationtransition-propertytransition-timing-function

印刷

改行、改ページ
break-afterbreak-beforebreak-insidepage-break-afterpage-break-beforepage-break-insidewidows

マウスポインタ、カーソル

caret-colorcursorpointer-events