Minimum size
noun
say it: “MIN-ih-mum SYZ” /ˈmɪnɪməm saɪz/
The smallest size an element is allowed to be, set with min-width or min-height. The element can grow bigger, but never smaller.
What do min-width and min-height do?
Minimum sizes stop an element from getting smaller than a set size.
.button { min-width: 120px; } /* short labels still get a decent button */
In a sentence
- “With a minimum size of 120px, the 'Buy' button never shrinks to an unreadable sliver.”
Level: Apprentice · More CSS terms at this level
Updated