CSS - Size of elements - Use "em" or "px" instead of "pt"

By [)ia6l0 iii

Pt stands for Point, Px stands for Pixel, em stands for ems

In CSS, Sizes are interchangeably mentioned in the above three units. The following rules should apply:

a) Points - These are designed to be used in print layouts and not for screen reading.
b) Pixels - Use this to have a consitent unit of measurement across most of the browsers and platforms too.
c) em - This applies the relative size of the user's font or the size of the parent element

Related FAQs

A Pseudo class is a class that applies to an element due to the result of an user's action; Hover for example.
A Rule set in css refers to a selector and its declarations.
A Selector in CSS define or select the html elements that the CSS rules apply for.
Below is a short list of the advantages of using Inline Styles
Use the link attribute to link a style sheet to your web page
Below is a short list of disadvantages of using inline styles
CSS - Size of elements - Use "em" or "px" instead of "pt"  (881 Views)