Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
min-height vs px - Kevin Powell - Community
KP-C
Kevin Powell - Community
•
3y ago
•
3 replies
snxxwyy
min-height vs px
i notice quite a few people using
min-height
min-height
to set a fixed height of an element rather than
height
height
, for example
,
min-height: 20px;
min-height: 20px;
over
height: 20px
height: 20px
, could anyone explain why people opt for this and it
's benefits
? is it a recommended practice or a optional one
?
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time 🙂.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
px vs rem vs em
KP-C
Kevin Powell - Community / front-end
3y ago
min-height: max-content;
KP-C
Kevin Powell - Community / front-end
3y ago
px vs em/rem padding
KP-C
Kevin Powell - Community / front-end
17mo ago