Setting the Font Size

There are two basic ways to set the font size for the text in your Web page. You can mandate that a specific size be used Image, or you can have the size be relative to the element’s parent font size Image.

Image Here I use pixel values to have control over the initial size of the text (which I’ve decreased in size throughout, compared with most browsers’ defaults). The paragraphs inherit the font-size set on body. You can see the results in ...

Get HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.