From the course: CSS Fundamentals: Unlock the Power of Web Styling
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Working with fonts - CSS Tutorial
From the course: CSS Fundamentals: Unlock the Power of Web Styling
Working with fonts
- [Instructor] If you're a designer, you know that typography is incredibly important to a design and the message you're trying to communicate. So it's no surprise that when learning CSS, a lot of folks start with fonts. The CSS specification gives us all sorts of controls when working with fonts. But for this course, I want to zero in on the most basic font properties, specifically the four most common ones you'll see when working with CSS. First, we've got font-family, next font-weight, font-style, and finally font-size. Now let's take a look at each one in turn. So here's the font-family and what we've got, we're specifying the font for an element. In this example, it's the paragraph element. Then we've got a prioritized list of fonts and we're also including a fallback font. So in this example here, the first font that we want would be Times New Roman. Should that not be available, then we'll go to Times. And…
Contents
-
-
-
-
Why CSS reset and normalize matter2m 56s
-
(Locked)
Working with fonts4m 45s
-
(Locked)
Understanding the box model4m 12s
-
(Locked)
Setting margins and padding3m 39s
-
(Locked)
Working with color6m 15s
-
(Locked)
Applying borders and backgrounds4m 56s
-
(Locked)
Understanding the units of measurement3m 6s
-
-
-
-
-