From the course: Tailwind CSS Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Spacing typography

Spacing typography - CSS Tutorial

From the course: Tailwind CSS Essential Training

Start my 1-month free trial

Spacing typography

- [Narrator] There are some classes that let you control the spacing between lines of texts and characters. The first one is line height. This is actually called leading in tailwind although technically what we're changing is the line height of the elements. So this is again in rems or root amps, and that means that leading of four would be essentially 16 pixels because it's one unit and one unit is 16 pixels. And then if you want to go lower then you can use three, five, and any of these other numbers that you see right here. So there's also relative line Heights, and this is kind of interesting. So you can make things relative to the root or that 16 pixel root M size that normally browsers are set to, or you can make them relative to the current container. So if you have another container that is set to a relative size of two, then these are going to be relative to that size as opposed to relative to the root.…

Contents