A hero or section needs a guaranteed minimum height while still being able to grow if its content needs more space.
⚡ Quick Fix (TL;DR)
The Culprit: A fixed height can clip content that ends up taller than expected; no height at all can make a section feel too short with little content.
The Fix: Set a minimum height that the section will never go below, while allowing it to expand naturally if content requires more room.
.my-hero {
min-height: 520px;
} Was this helpful? Thanks for the feedback!
Tagged in :
More from the field
Bisect to an Empty Baseline Before Trusting Any Single Theory
.
Multiple plausible-sounding theories for a bug each turned out to be wrong when actually tested – time was spent building fixes…
A Security Dashboard’s Activity Log Can Lag a Full Day Behind Real Time
.
Trying to check a security tool’s activity log for an event that had just happened showed nothing at all.