今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Line-height and letter-spacing
- [Instructor] Let's take a look at two more text-based CSS properties, line height and letter spacing. Line height sets the vertical spacing between lines of text. It can be used with different value types, including length, number, percentage, and the keyword normal. The letter spacing property sets the horizontal spacing between text characters. It can be defined with length values and the keyword normal. Let's go back to the code pin from the previous lesson. Line height is related to font size, which right now is displaying the default value of 16 pixels. I'll start by commenting out the styles from the previous exercise. Now, let's add line height to the P element. If the value is the same as the font size, there will be no space between the lines. If the value is smaller, then the lines will overlap. To add space between the lines, choose a value that is larger than the font size which will make it easier to…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
-
-
-
-
-
Typography for the web3 分钟 11 秒
-
(已锁定)
Changing fonts with font-family2 分钟 59 秒
-
(已锁定)
font-weight and font-style3 分钟 3 秒
-
(已锁定)
Web fonts with @font-face2 分钟 31 秒
-
(已锁定)
Web fonts with Google Fonts3 分钟 18 秒
-
(已锁定)
Project: Google Fonts4 分钟 5 秒
-
(已锁定)
The font-size property4 分钟 6 秒
-
(已锁定)
Font-size and accessibility6 分钟 39 秒
-
(已锁定)
Text-align and text-transform3 分钟 26 秒
-
(已锁定)
Line-height and letter-spacing3 分钟 22 秒
-
(已锁定)
Project: Typography styles6 分钟 56 秒
-
(已锁定)
Project: Buttons and spacing9 分钟 23 秒
-
-
-