Not all typography-related styles in CSS use the font-prefix. In this video, look at other typography-related CSS properties.
- [Instructor] There are more typography-related properties…that don't begin with font.…There's one that we've seen already…in previous lessons, color.…Here's a quick review.…Color changes the text color and uses a variety…of values, keywords, hex codes…and rgb being the most common.…The line-height property is used to set the height…of space between the two lines of content.…For example, the spacing between the lines in a paragraph.…This style should be considered when setting font sizes…since they are closely related.…
The value can be declared using the length values…discussed previously for other properties,…but line-height also accepts a unitless value.…Let's look at an example.…If the line height is set to the same value…as the font size, there will be no space between the lines…which would make it hard to read,…so as a rule of thumb, your line-height value should always…be larger than the font size to add space between the lines.…Let's try 20 and see how that looks.…
Now if I change the font size to make it smaller or bigger,…
- Creating a CSS file
- Writing basic selectors
- Setting properties
- Using different typefaces and web-safe fonts
- Understanding cascading and inheritance
- Setting a font family, font size, text color, and more
- Understanding the box model
- Using the float property
Skill Level Beginner
1. Getting Started
2. CSS Core
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.