CSS - Measurement Units


CSS - Measurement Units

  • Each element in a web page has to be unique in size color weight when compared to other. Measurement property helps the developers to develop a unique web page by applying measurement property on html elements.  
  • CSS has a few units for various units:
    • width
    • margin
    • padding
    • font-size
    • border-width
  • Length demonstrates by utilizing numerical worth took after by length units, for example, pixel, em, etc., It doesn't permit white spaces in the middle of numerical qualities and length units.
  •  Measurement Unit has been divided into 
    • Relative Units
    • Absolute Units
Relative Units:
  • Relative length units determine a length with respect to another length property. The relative units are
    • Percentage (%)
    • em
    • ex
    • vh
    • vw
    • vmin
    • vmax

Absolute Units:

  • The absolute length units are settled and a length communicated in any of these will show up as correctly that size.The absolute units are
    • Centimeter (cm)
    • Inches(in)
    • Millimeter (mm)
    • Picas (pc)
    • Points (pt)
    • Pixel (px)