CSS Tutorials

CSS FONT SIZES

There are a few ways you can write font sizes, so I thought it would be handy to have a comparison of them here.

{font-size: 14pt}
{font-size: 14px}
{font-size: x-large}
{font-size: larger}
{font-size: 1.5 em}
{font-size: 125%}

IMO the best practice to get into is to use either em or % , as they adjust to various resolutions better.

1 Star2 Stars3 Stars4 Stars5 Stars
Loading ... Loading ...

Post your comment

This question is for testing whether you are a human visitor and to prevent automated spam submissions. Please type the term 'Super Hosting' in the text box below:*

Fields with * are manadatory