🎨 CSSチートシート

プロパティ用途値の例
color文字色color: #3a86ff;
font-size文字サイズfont-size: 16px;
font-weight文字の太さfont-weight: bold;
background-color背景色background-color: #f0f4ff;
border枠線border: 2px solid #ccc;
border-radius角丸border-radius: 8px;
margin外側の余白margin: 16px auto;
padding内側の余白padding: 24px;
display表示方法display: flex;
justify-contentFlex横方向の揃えjustify-content: center;
align-itemsFlex縦方向の揃えalign-items: center;
flex-directionFlex並ぶ方向flex-direction: column;
width / height幅 / 高さwidth: 300px;
@mediaメディアクエリ@media (min-width: 768px)
box-sizing幅の計算方法box-sizing: border-box;
position配置方法position: relative;
z-index重なり順z-index: 10;
transition変化のアニメーションtransition: all 0.3s ease;
transform移動・回転・拡大transform: translateX(10px);
animationキーフレームアニメーションanimation: fadeIn 1s ease;
grid-template-columnsGrid列の定義grid-template-columns: repeat(3, 1fr);
gapFlex/Gridの間隔gap: 16px;
overflowはみ出し処理overflow: hidden;
opacity透明度opacity: 0.5;
cursorカーソルの形cursor: pointer;
text-alignテキスト揃えtext-align: center;
line-height行の高さline-height: 1.6;
box-shadowbox-shadow: 0 2px 8px rgba(0,0,0,0.1);
text-decorationテキスト装飾text-decoration: none;
visibility表示/非表示(場所は残る)visibility: hidden;

📖 関連する用語

❓ よくある質問

CSSチートシートはどんな人向け?

CSS初心者〜中級者向け。基本プロパティからFlexbox/Gridまで網羅しています。

プロパティが効かないときは?

エラー辞典でよくある原因と解決策を確認できます。

印刷して使える?

はい。印刷に最適化されたレイアウトで出力されます。

⚠️ よくあるエラー

📎 このチートシートを紹介する

ブログや記事で紹介する際は、以下のURLをご利用ください。

https://start-web-programming.com/cheatsheet/css/

🎨 CSSの使い方をレッスンで学ぼう!

全6レッスンでCSSの基礎をゼロから学べます。完全無料・登録不要。

CSSコースを始める →