Dev Patrache

CSS यूनिट रेफरेंस

UnitNameTypeDescriptionExample
pxPixelsabsoluteOne pixel on screen. The most basic unit.font-size: 16px;
emEmrelativeMultiple of the parent element font-size.padding: 1.5em;
remRoot EmrelativeMultiple of the root (html) element font-size.margin: 2rem;
%PercentrelativePercentage relative to the corresponding parent property.width: 50%;
vwViewport Widthviewport1% of the viewport width.width: 100vw;
vhViewport Heightviewport1% of the viewport height.height: 100vh;
vminViewport Minviewport1% of the smaller of vw and vh.font-size: 5vmin;
vmaxViewport Maxviewport1% of the larger of vw and vh.width: 50vmax;
dvhDynamic VHviewportDynamic viewport height (accounts for mobile address bar).height: 100dvh;
svhSmall VHviewportSmallest viewport height.min-height: 100svh;
lvhLarge VHviewportLargest viewport height.max-height: 100lvh;
chCharacterrelativeBased on the width of the "0" character.max-width: 60ch;
exX-HeightrelativeBased on the height of the "x" character.line-height: 2ex;
cmCentimetersabsoluteCentimeters. For print.width: 10cm;
mmMillimetersabsoluteMillimeters. For print.margin: 5mm;
inInchesabsoluteInches (1in = 96px).width: 2in;
ptPointsabsolutePoints (1pt = 1/72in).font-size: 12pt;
cqiContainer Inlinecontainer1% of the container inline size.font-size: 5cqi;
cqbContainer Blockcontainer1% of the container block size.padding: 2cqb;
19개 표시 중
अंतिम अपडेट: 2026 · निःशुल्क ऑनलाइन टूल

CSS यूनिट रेफरेंस क्या है?

px, em, rem, %, vw, vh, vmin, vmax, ch जैसी CSS इकाइयों का मुफ्त संदर्भ, श्रेणी के अनुसार, हर निरपेक्ष और सापेक्ष इकाई के उपयोग और तरीके की स्पष्ट व्याख्या के साथ।

उपयोग कैसे करें

  1. 1
    इनपुट— आवश्यक डेटा दर्ज करें।
  2. 2
    परिणाम— प्रोसेस किए गए परिणाम देखें।
  3. 3
    कॉपी— परिणाम कॉपी करके उपयोग करें।

संबंधित टूल

अक्सर पूछे जाने वाले प्रश्न

सभी CSS लंबाई, कोण, समय इकाइयों को कवर करने वाला मुफ्त रेफरेंस।

नहीं। सभी प्रोसेसिंग आपके ब्राउज़र में होती है।

हां, रिस्पॉन्सिव डिज़ाइन मोबाइल डिवाइस पर काम करता है।

यह साइट बेहतर अनुभव और विज्ञापन के लिए कुकीज़ का उपयोग करती है। और जानें