Ticker

6/recent/ticker-posts

Header Ads Widget

Responsive Advertisement

CSS units


 


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.

Post a Comment

0 Comments