THE UNITS OF CSS:
PIXELS:
Represents pixel on a device. A pixel is also known as a picture element (pix = picture, el = element).
A pixel is represented by a dot or square on a computer monitor display screen. Pixels are the basic building blocks of a digital image or display and are created using geometric coordinates
PERCENTAGE:
This is relative unit for font size. The current font size is 100% . By increasing and decreasing the %, we may change the font size.
EMS:
This is also relative unit for font size. The current font size is 1 em , now if we want to double it we may write 2 em.
POINTS:
Mostly used in print media. Basically 72 points are equal to 1 inch.
0 Comments