Font shorthand


show more Font shorthand provides you with in-depth training on Web. Taught by Eric Meyer as part of the CSS Web Site Design show less
please wait ...

Font shorthand

So in this video we're going to see how to bring together various fonts styling properties that we've been looking at and put them into one shorthand property. You can see here that there is already some styling of the main paragraphs here in this particular design, and this was accomplished with the rule you see here. The content P font-family Arial, sans-serif, font-weight bold, font-style italic, font-size smaller. It would be really nice if we didn't have to say all those things, so repetitively we can just say font bold italic smaller Arial, sans-serif and that could take the place of all those other guys which it can, but you'll notice, let met put that back for a second, that I didn't put those together in the same order they were written previously. I said bold italic smaller Arial, sans-serif and there's a reason for that.

In the font shorthand, unlike most other shorthand properties, there are two things that must be present, and they must be present in a ...

Font shorthand
Video duration: 6m 5s 6h 8m Intermediate

Viewers:

Font shorthand provides you with in-depth training on Web. Taught by Eric Meyer as part of the CSS Web Site Design

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