Tailwind CSS
/Beginner
Height
Definition
Utilities for setting the height of an element, including fixed heights, percentage heights, and viewport heights.
Explain Like I'm New
How tall something is. Just like width, you can use the spacing scale (`h-16`), percentages (`h-full`), or viewport units (`h-screen`).
Real World Example
Creating a 'Hero Image' at the top of a landing page that perfectly takes up the entire vertical space of the user's monitor using `h-screen`.
Common Use Cases
- •Hero sections
- •Full-page layouts
- •Sizing icons
Interactive Example
Interview Questions
basic
- If you apply `h-full` to a child, but the parent `div` doesn't have a defined height, what happens?
intermediate
- What modern Tailwind class accounts for the mobile browser address bar popping in and out?