Setting font size


show more Setting font size provides you with in-depth training on Web. Taught by James Williamson as part of the CSS: Core Concepts show less
please wait ...

Setting font size

To control the size of your fonts you'll use the aptly named font size property. You know for the most part controlling the size of text is pretty straight forward, but there are some things to consider when deciding on which unit of measurement to use. So I want to take a look at not only the property but those considerations as well. Let's go ahead and open up the font-size.htm and you can find that in the 04_03 folder. Pretty basic page, kind of somewhat what we've been using before, we have an article with a heading and a couple paragraphs inside of it and not much else going on. And then we have some basic generic styles going on up in the head of the document.

So I want to focus on the heading and the paragraph first and take a look at using the font-size property. I am just going to create a new rule for heading one and inside that I want to use font-size and I want to set that to a value 24 pixels. I will do the same thing for my paragraph. I will create a paragraph rul...

Setting font size
Video duration: 7m 35s 8h 52m Beginner

Viewers:

Setting font size provides you with in-depth training on Web. Taught by James Williamson as part of the CSS: Core Concepts

Subject:
Web
Software:
CSS
Author:
please wait ...