CSS चीट शीट
एक खोजने योग्य, प्रिंट करने योग्य CSS संदर्भ — सिलेक्टर, बॉक्स मॉडल, flexbox, grid, टाइपोग्राफी, ट्रांज़िशन और आधुनिक सुविधाएँ। मुफ्त।
Selectors
13.class
#id
a, b
a b
a > b
a + b
a ~ b
[type="text"]
:hover :focus
:nth-child(2n)
::before ::after
:not(.x)
:is(h1, h2, h3)
Box model
7box-sizing: border-box;
margin: 0 auto;
padding: 1rem 2rem;
border: 1px solid #ccc;
border-radius: 8px;
outline: 2px dashed red;
overflow: hidden;
Flexbox
8display: flex;
flex-direction: row | column;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
flex: 1;
align-self: flex-end;
Grid
8display: grid;
grid-template-columns: 1fr 1fr 1fr;
repeat(3, 1fr)
minmax(200px, 1fr)
grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
gap: 1rem;
grid-column: 1 / 3;
place-items: center;
Typography
8font-family: system-ui, sans-serif;
font-size: 1.125rem;
font-weight: 600;
line-height: 1.6;
letter-spacing: .02em;
text-align: center;
text-transform: uppercase;
text-overflow: ellipsis;
Colors & background
7color: #1f2937;
background: rgb(0 0 0 / 50%);
background: linear-gradient(90deg,#f06,#48f);
opacity: .5;
box-shadow: 0 4px 12px rgb(0 0 0 / .15);
background-size: cover;
color-mix(in srgb, red 40%, blue);
Positioning
6position: relative;
position: absolute;
position: fixed;
position: sticky; top: 0;
inset: 0;
z-index: 10;
Transitions & animation
5transition: all .2s ease;
transform: translateY(-4px) scale(1.05);
@keyframes spin { to { transform: rotate(360deg); } }
animation: spin 1s linear infinite;
will-change: transform;
Responsive & modern
7@media (max-width: 768px) { ... }
clamp(1rem, 2vw, 2rem)
aspect-ratio: 16 / 9;
var(--brand)
:root { --brand: #4f46e5; }
container-type: inline-size;
@container (min-width: 400px) {…}
कोई प्रविष्टि “:q” से मेल नहीं खाती।
CSS चीट शीट के बारे में
यह CSS चीट शीट आपके रोज इस्तेमाल होने वाले प्रॉपर्टीज़ को एक सर्च करने योग्य पेज में समेटती है: सिलेक्टर, बॉक्स मॉडल, फ्लेक्सबॉक्स, ग्रिड, टाइपोग्राफी, कलर और बैकग्राउंड, पोजिशनिंग, ट्रांजिशन और एनिमेशन, और रिस्पॉन्सिव व मॉडर्न CSS पर एक सेक्शन।
इसे इस तरह व्यवस्थित किया गया है कि "वह प्रॉपर्टी क्या कहलाती थी?" का जवाब बस एक सर्च दूर है — खासकर फ्लेक्सबॉक्स और ग्रिड सेक्शन एलाइनमेंट और लेआउट प्रॉपर्टीज़ को उन वैल्यूज़ के साथ लिस्ट करते हैं जिन्हें आप सीधे स्टाइलशीट में कॉपी कर सकते हैं, और मॉडर्न सेक्शन नए फीचर्स को हाथ में रखता है।
यह शीट फ्री है, क्लाइंट-साइड लोड होती है, टाइप करते ही लाइव फिल्टर होती है, और आपको एक क्लिक से किसी भी डिक्लेरेशन को कॉपी करने देती है। स्टिकी टेबल ऑफ कंटेंट्स सेक्शनों के बीच जंप करता है और प्रिंट बटन एक साफ-सुथरा पेपर रेफरेंस बनाता है।
CSS चीट शीट का उपयोग कैसे करें
- सेक्शन लिस्ट देखें — Selectors, Box model, Flexbox, Grid, Typography और अधिक।
- grid, hover या transition जैसा कोई प्रॉपर्टी या कॉन्सेप्ट सर्च बॉक्स में टाइप करें ताकि हर रो फिल्टर हो जाए।
- स्टिकी टेबल ऑफ कंटेंट्स के जरिए Positioning जैसे किसी सेक्शन पर जंप करें।
- CSS डिक्लेरेशन कॉपी करने के लिए किसी स्निपेट या उसके कॉपी आइकन पर क्लिक करें।
- डेस्क-साइड CSS रेफरेंस के लिए शीट प्रिंट करें।