O'Reilly logo

HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition by Bruce Hyslop, Elizabeth Castro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required