CSS/プロパティ一覧
表示
< CSS
CSSプロパティをなるべく網羅すべく一覧化しました。
CSSプロパティ一覧 名前 機能 用例 align-contentフレックスコンテナ内の行の配置を指定 align-content: space-between;align-itemsフレックスアイテムの配置を指定 align-items: center;align-self個別のフレックスアイテムの配置を指定 align-self: flex-start;allすべてのプロパティを一括リセット all: initial;animationアニメーションを指定 animation: 3s ease-in 1s infinite reverse both running slidein;animation-delayアニメーション開始までの遅延を指定 animation-delay: 2s;animation-directionアニメーションの方向を指定 animation-direction: alternate;animation-durationアニメーションの継続時間を指定 animation-duration: 3s;animation-fill-modeアニメーション前後の状態を指定 animation-fill-mode: forwards;animation-iteration-countアニメーションの繰り返し回数を指定 animation-iteration-count: infinite;animation-nameアニメーションの名前を指定 animation-name: slidein;animation-play-stateアニメーションの再生状態を指定 animation-play-state: paused;animation-timing-functionアニメーションの進行を指定 animation-timing-function: ease-in-out;backdrop-filter要素の背後に視覚効果を適用 backdrop-filter: blur(10px);backface-visibility要素の裏面の可視性を指定 backface-visibility: hidden;background背景を一括指定 background: #f00 url("bg.jpg") no-repeat center;background-attachment背景画像の固定を指定 background-attachment: fixed;background-blend-mode背景レイヤーのブレンドモードを指定 background-blend-mode: multiply;background-clip背景の描画領域を指定 background-clip: padding-box;background-color背景色を指定 background-color: #ff0000;background-image背景画像を指定 background-image: url("image.png");background-origin背景の配置起点を指定 background-origin: content-box;background-position背景画像の位置を指定 background-position: center top;background-repeat背景画像の繰り返しを指定 background-repeat: no-repeat;background-size背景画像のサイズを指定 background-size: cover;borderボーダーを一括指定 border: 1px solid black;border-bottom下ボーダーを指定 border-bottom: 2px dashed blue;border-bottom-color下ボーダーの色を指定 border-bottom-color: red;border-bottom-left-radius左下の角丸を指定 border-bottom-left-radius: 10px;border-bottom-right-radius右下の角丸を指定 border-bottom-right-radius: 10px;border-bottom-style下ボーダーのスタイルを指定 border-bottom-style: dotted;border-bottom-width下ボーダーの幅を指定 border-bottom-width: 3px;border-collapseテーブルのボーダーの結合を指定 border-collapse: collapse;border-colorボーダーの色を指定 border-color: red green blue yellow;border-imageボーダー画像を指定 border-image: url("border.png") 30 round;border-image-outsetボーダー画像のはみ出しを指定 border-image-outset: 10px;border-image-repeatボーダー画像の繰り返しを指定 border-image-repeat: repeat;border-image-sliceボーダー画像の分割を指定 border-image-slice: 30%;border-image-sourceボーダー画像のソースを指定 border-image-source: url("border.png");border-image-widthボーダー画像の幅を指定 border-image-width: 1;border-left左ボーダーを指定 border-left: 1px solid black;border-left-color左ボーダーの色を指定 border-left-color: red;border-left-style左ボーダーのスタイルを指定 border-left-style: dashed;border-left-width左ボーダーの幅を指定 border-left-width: 2px;border-radius角丸を指定 border-radius: 10px;border-right右ボーダーを指定 border-right: 1px solid black;border-right-color右ボーダーの色を指定 border-right-color: blue;border-right-style右ボーダーのスタイルを指定 border-right-style: dotted;border-right-width右ボーダーの幅を指定 border-right-width: 3px;border-spacingテーブルセルの間隔を指定 border-spacing: 2px 5px;border-styleボーダーのスタイルを指定 border-style: solid dashed dotted double;border-top上ボーダーを指定 border-top: 1px solid black;border-top-color上ボーダーの色を指定 border-top-color: green;border-top-left-radius左上の角丸を指定 border-top-left-radius: 10px;border-top-right-radius右上の角丸を指定 border-top-right-radius: 10px;border-top-style上ボーダーのスタイルを指定 border-top-style: groove;border-top-width上ボーダーの幅を指定 border-top-width: 2px;border-widthボーダーの幅を指定 border-width: 1px 2px 3px 4px;bottom下からの位置を指定 bottom: 10px;box-shadowボックスシャドウを指定 box-shadow: 2px 2px 5px rgba(0,0,0,0.3);box-sizingボックスサイズの計算方法を指定 box-sizing: border-box;break-after改ページの挿入を指定 break-after: always;break-before改ページの挿入を指定 break-before: page;break-inside要素内の改ページを制御 break-inside: avoid;caption-sideテーブルキャプションの位置を指定 caption-side: bottom;caret-colorキャレットの色を指定 caret-color: red;clearフロートの解除を指定 clear: both;clip要素の表示領域をクリッピング clip: rect(0px, 60px, 200px, 0px);clip-path要素の表示領域をクリッピング clip-path: circle(50%);colorテキストの色を指定 color: #ff0000;column-count段組みの列数を指定 column-count: 3;column-fill段組みの高さを指定 column-fill: auto;column-gap段組みの間隔を指定 column-gap: 40px;column-rule段組みの仕切り線を指定 column-rule: 1px solid black;column-rule-color段組みの仕切り線の色を指定 column-rule-color: blue;column-rule-style段組みの仕切り線のスタイルを指定 column-rule-style: dotted;column-rule-width段組みの仕切り線の幅を指定 column-rule-width: 2px;column-span段組みをまたぐ要素を指定 column-span: all;column-width段組みの幅を指定 column-width: 100px;columns段組みを一括指定 columns: 3 100px;content疑似要素の内容を生成 content: "→";counter-incrementカウンタの増分を指定 counter-increment: section;counter-resetカウンタをリセット counter-reset: section;cursorカーソルの形状を指定 cursor: pointer;directionテキストの方向を指定 direction: rtl;display表示形式を指定 display: flex;empty-cells空セルの表示を指定 empty-cells: hide;filter視覚効果を適用 filter: blur(5px);flexフレックスアイテムを一括指定 flex: 1 1 auto;flex-basisフレックスアイテムの初期サイズを指定 flex-basis: 200px;flex-directionフレックスコンテナの主軸を指定 flex-direction: column;flex-flowflex-direction と flex-wrap を一括指定 flex-flow: row wrap;flex-growフレックスアイテムの伸長係数を指定 flex-grow: 2;flex-shrinkフレックスアイテムの収縮係数を指定 flex-shrink: 0;flex-wrapフレックスアイテムの折り返しを指定 flex-wrap: wrap;float要素の浮動を指定 float: left;fontフォントを一括指定 font: italic bold 12px/30px Georgia, serif;font-familyフォントファミリーを指定 font-family: Arial, sans-serif;font-feature-settingsOpenTypeフォントの機能を制御 font-feature-settings: "smcp" on;font-kerningカーニングを制御 font-kerning: normal;font-language-override言語固有のグリフを制御 font-language-override: "JAN";font-sizeフォントサイズを指定 font-size: 16px;font-size-adjustフォントの相対的な大きさを指定 font-size-adjust: 0.5;font-stretchフォントの幅を指定 font-stretch: condensed;font-styleフォントスタイルを指定 font-style: italic;font-synthesisフォントの合成を制御 font-synthesis: none;font-variantフォントバリアントを指定 font-variant: small-caps;font-variant-caps大文字小文字の変形を指定 font-variant-caps: small-caps;font-variant-east-asian東アジアの文字変形を指定 font-variant-east-asian: jis78;font-variant-ligatures合字の使用を指定 font-variant-ligatures: no-common-ligatures;font-variant-numeric数字、分数、序数の表示を指定 font-variant-numeric: ordinal;font-variant-position上付き文字や下付き文字を指定 font-variant-position: super;font-weightフォントの太さを指定 font-weight: bold;gapグリッドやフレックスボックスの間隔を指定 gap: 10px;gridグリッドを一括指定 grid: 100px 1fr / 50px 1fr;grid-areaグリッドアイテムの配置領域を指定 grid-area: 2 / 1 / span 2 / span 3;grid-auto-columns暗黙的なグリッド列のサイズを指定 grid-auto-columns: 100px;grid-auto-flow自動配置アルゴリズムを指定 grid-auto-flow: dense;grid-auto-rows暗黙的なグリッド行のサイズを指定 grid-auto-rows: 100px;grid-columnグリッド列の開始位置と終了位置を指定 grid-column: 1 / 3;grid-column-endグリッド列の終了位置を指定 grid-column-end: span 2;grid-column-gapグリッド列の間隔を指定 grid-column-gap: 10px;grid-column-startグリッド列の開始位置を指定 grid-column-start: 2;grid-gapグリッドの間隔を指定 grid-gap: 10px 20px;grid-rowグリッド行の開始位置と終了位置を指定 grid-row: 1 / 3;grid-row-endグリッド行の終了位置を指定 grid-row-end: span 2;grid-row-gapグリッド行の間隔を指定 grid-row-gap: 15px;grid-row-startグリッド行の開始位置を指定 grid-row-start: 2;grid-templateグリッドテンプレートを一括指定 grid-template: 100px 1fr / 50px 1fr;grid-template-areasグリッドテンプレート領域を指定 grid-template-areas: "header header" "main sidebar" "footer footer";grid-template-columnsグリッド列のサイズを指定 grid-template-columns: 100px 1fr 2fr;grid-template-rowsグリッド行のサイズを指定 grid-template-rows: auto 1fr auto;hanging-punctuationぶら下がり句読点を指定 hanging-punctuation: first;height要素の高さを指定 height: 100px;hyphensハイフネーションを指定 hyphens: auto;image-orientation画像の向きを指定 image-orientation: 90deg;image-rendering画像のレンダリング方法を指定 image-rendering: crisp-edges;inline-sizeインライン方向のサイズを指定 inline-size: 300px;inset上下左右の位置を一括指定 inset: 10px 20px 30px 40px;isolation重ね合わせコンテキストを作成 isolation: isolate;justify-contentフレックスアイテムの主軸方向の配置を指定 justify-content: space-between;justify-itemsグリッドアイテムの水平方向の配置を指定 justify-items: center;justify-self個別のグリッドアイテムの水平方向の配置を指定 justify-self: end;left左からの位置を指定 left: 20px;letter-spacing文字間隔を指定 letter-spacing: 2px;line-break行の折り返し方法を指定 line-break: strict;line-height行の高さを指定 line-height: 1.5;list-styleリストスタイルを一括指定 list-style: square inside url("bullet.png");list-style-imageリスト項目マーカーの画像を指定 list-style-image: url("bullet.png");list-style-positionリスト項目マーカーの位置を指定 list-style-position: inside;list-style-typeリスト項目マーカーの種類を指定 list-style-type: decimal;margin外側の余白を指定 margin: 10px 20px 30px 40px;margin-bottom下側の外側余白を指定 margin-bottom: 20px;margin-left左側の外側余白を指定 margin-left: 15px;margin-right右側の外側余白を指定 margin-right: 15px;margin-top上側の外側余白を指定 margin-top: 10px;maskマスクを指定 mask: url("mask.png");mask-clipマスクの適用範囲を指定 mask-clip: padding-box;mask-compositeマスクの合成方法を指定 mask-composite: add;mask-imageマスク画像を指定 mask-image: linear-gradient(rgba(0, 0, 0, 1.0), transparent);mask-modeマスクのモードを指定 mask-mode: alpha;mask-originマスクの基準位置を指定 mask-origin: content-box;mask-positionマスクの位置を指定 mask-position: center;mask-repeatマスクの繰り返しを指定 mask-repeat: no-repeat;mask-sizeマスクのサイズを指定 mask-size: cover;mask-typeマスクの種類を指定 mask-type: luminance;max-height最大の高さを指定 max-height: 500px;max-width最大の幅を指定 max-width: 1200px;min-height最小の高さを指定 min-height: 100px;min-width最小の幅を指定 min-width: 200px;mix-blend-mode要素のブレンドモードを指定 mix-blend-mode: multiply;object-fit置換要素のコンテンツのサイズ調整方法を指定 object-fit: cover;object-position置換要素のコンテンツの位置を指定 object-position: center top;opacity不透明度を指定 opacity: 0.5;orderフレックスアイテムの順序を指定 order: 2;orphansページ下部に残す最小行数を指定 orphans: 3;outlineアウトラインを一括指定 outline: 1px solid blue;outline-colorアウトラインの色を指定 outline-color: red;outline-offsetアウトラインのオフセットを指定 outline-offset: 5px;outline-styleアウトラインのスタイルを指定 outline-style: dashed;outline-widthアウトラインの幅を指定 outline-width: 2px;overflowはみ出し時の処理を指定 overflow: hidden;overflow-wrap長い単語の折り返しを指定 overflow-wrap: break-word;overflow-x水平方向のはみ出し時の処理を指定 overflow-x: scroll;overflow-y垂直方向のはみ出し時の処理を指定 overflow-y: auto;padding内側の余白を指定 padding: 10px 20px 30px 40px;padding-bottom下側の内側余白を指定 padding-bottom: 20px;padding-left左側の内側余白を指定 padding-left: 15px;padding-right右側の内側余白を指定 padding-right: 15px;padding-top上側の内側余白を指定 padding-top: 10px;page-break-after要素後の改ページを指定 page-break-after: always;page-break-before要素前の改ページを指定 page-break-before: avoid;page-break-inside要素内の改ページを指定 page-break-inside: avoid;perspective3D変換の遠近効果を指定 perspective: 1000px;perspective-origin3D変形の消失点を指定 perspective-origin: center top;pointer-eventsポインタイベントの反応を指定 pointer-events: none;position配置方法を指定 position: absolute;quotes引用符を指定 quotes: "«" "»" "‹" "›";resizeユーザーによるリサイズを指定 resize: both;right右からの位置を指定 right: 20px;rotate要素の回転を指定 rotate: 45deg;row-gapグリッド行の間隔を指定 row-gap: 10px;scale要素の拡大縮小を指定 scale: 1.5;scroll-behaviorスクロールの動作を指定 scroll-behavior: smooth;scroll-marginスクロールスナップの余白を指定 scroll-margin: 10px;scroll-paddingスクロールコンテナの内側の余白を指定 scroll-padding: 20px;scroll-snap-alignスクロールスナップの位置を指定 scroll-snap-align: center;scroll-snap-stopスクロールスナップの停止を指定 scroll-snap-stop: always;scroll-snap-typeスクロールスナップの種類を指定 scroll-snap-type: x mandatory;shape-image-thresholdシェイプの透明度しきい値を指定 shape-image-threshold: 0.5;shape-marginシェイプの余白を指定 shape-margin: 10px;shape-outsideテキストの回り込み形状を指定 shape-outside: circle(50%);tab-sizeタブ文字の幅を指定 tab-size: 4;table-layoutテーブルのレイアウト方法を指定 table-layout: fixed;text-alignテキストの水平方向の配置を指定 text-align: center;text-align-last最後の行のテキスト配置を指定 text-align-last: justify;text-combine-upright縦書き時の文字の結合を指定 text-combine-upright: all;text-decorationテキストの装飾を一括指定 text-decoration: underline red wavy;text-decoration-colorテキスト装飾の色を指定 text-decoration-color: blue;text-decoration-lineテキスト装飾の線を指定 text-decoration-line: overline;text-decoration-styleテキスト装飾のスタイルを指定 text-decoration-style: wavy;text-emphasis圏点を一括指定 text-emphasis: dot red;text-indentテキストのインデントを指定 text-indent: 2em;text-justifyテキストの均等割付方法を指定 text-justify: inter-word;text-orientation縦書き時の文字の向きを指定 text-orientation: upright;text-overflowはみ出したテキストの処理を指定 text-overflow: ellipsis;text-renderingテキストのレンダリング方法を指定 text-rendering: optimizeLegibility;text-shadowテキストの影を指定 text-shadow: 2px 2px 4px #000000;text-transformテキストの変形を指定 text-transform: uppercase;text-underline-position下線の位置を指定 text-underline-position: under;top上からの位置を指定 top: 10px;transform変形を指定 transform: rotate(45deg) scale(1.5);transform-origin変形の基準点を指定 transform-origin: left top;transform-style子要素の3D変形を指定 transform-style: preserve-3d;transitionトランジションを一括指定 transition: all 0.3s ease;transition-delayトランジションの遅延を指定 transition-delay: 1s;transition-durationトランジションの継続時間を指定 transition-duration: 0.5s;transition-propertyトランジションのプロパティを指定 transition-property: opacity, transform;transition-timing-functionトランジションのタイミング関数を指定 transition-timing-function: ease-in-out;translate要素の移動を指定 translate: 50px 100px;unicode-bidi文字の方向性を指定 unicode-bidi: bidi-override;user-selectテキスト選択の可否を指定 user-select: none;vertical-alignインライン要素の垂直方向の配置を指定 vertical-align: middle;visibility要素の可視性を指定 visibility: hidden;white-space空白文字の処理を指定 white-space: nowrap;widowsページ上部に残す最小行数を指定 widows: 2;width要素の幅を指定 width: 300px;will-change変更が予想されるプロパティを指定 will-change: transform;word-break単語の改行方法を指定 word-break: break-all;word-spacing単語間の間隔を指定 word-spacing: 5px;writing-mode文章の方向を指定 writing-mode: vertical-rl;z-index重なり順を指定 z-index: 100;
この一覧には、ほぼすべてのCSSプロパティが含まれています。ただし、ブラウザ固有のプロパティや非常に新しい実験的なプロパティは省略しています。また、CSS仕様の更新により、新しいプロパティが追加されたり、既存のプロパティが非推奨になったりする可能性があります。
CSSプロパティの一覧はほぼ網羅されていますが、いくつかの追加のプロパティや、より新しいプロパティについて補足いたします。
名前 機能 用例 accent-colorフォーム要素のアクセントカラーを指定 accent-color: #ff4500;aspect-ratio要素のアスペクト比を指定 aspect-ratio: 16 / 9;backdrop-filter要素の背後に視覚効果を適用 backdrop-filter: blur(10px);color-scheme要素のカラースキームを指定 color-scheme: light dark;column-span段組みをまたぐ要素を指定 column-span: all;containレイアウト最適化のヒントを指定 contain: layout;content-visibilityコンテンツの可視性を最適化 content-visibility: auto;counter-setカウンタの値を設定 counter-set: chapter 1;font-displayWebフォントの表示方法を指定 font-display: swap;font-variation-settings可変フォントの設定を指定 font-variation-settings: "wght" 700;gapグリッドやフレックスボックスの間隔を指定 gap: 10px 20px;initial-letterドロップキャップを指定 initial-letter: 3;inset上下左右の位置を一括指定 inset: 10px;place-contentalign-content と justify-content を一括指定 place-content: center;place-itemsalign-items と justify-items を一括指定 place-items: center;place-selfalign-self と justify-self を一括指定 place-self: start end;row-gapグリッド行の間隔を指定 row-gap: 20px;scroll-marginスクロールスナップの余白を指定 scroll-margin: 10px;scroll-paddingスクロールコンテナの内側の余白を指定 scroll-padding: 20px;text-decoration-thicknessテキスト装飾の太さを指定 text-decoration-thickness: 3px;text-underline-offset下線のオフセットを指定 text-underline-offset: 3px;user-selectテキスト選択の可否を指定 user-select: none;
また、以下のようなロジカルプロパティも追加されています:
名前 機能 用例 block-sizeブロック方向のサイズを指定 block-size: 300px;inline-sizeインライン方向のサイズを指定 inline-size: 200px;margin-blockブロック方向のマージンを指定 margin-block: 20px;margin-inlineインライン方向のマージンを指定 margin-inline: 10px;padding-blockブロック方向のパディングを指定 padding-block: 15px;padding-inlineインライン方向のパディングを指定 padding-inline: 10px;inset-blockブロック方向の位置を指定 inset-block: 20px;inset-inlineインライン方向の位置を指定 inset-inline: 15px;
これらのプロパティは、書字方向に依存しないレイアウトを作成する際に役立ちます。
最後に、CSS Houdini APIに関連する新しいプロパティもあります:
名前 機能 用例 paint-orderSVG要素の描画順序を指定 paint-order: stroke fill markers;
これらのプロパティリストは、CSSの進化に伴って常に変化しています。新しいプロパティが追加されたり、既存のプロパティが非推奨になったりする可能性があるため、最新の仕様や各ブラウザの対応状況を確認することが重要です。