> All in One 586: Min and Max Width/Height in CSS

Ads

Friday, January 24, 2020

Min and Max Width/Height in CSS

Here's a nice deep dive into min-width / min-height / max-width / max-height from Ahmad Shadeed. I like how Ahmad applies the properties to real-world design situations in addition to explaining how it works. In the very first demo, for example, he shows a button where min-width is used as a method for (trying to) make sure a button has space on its sides. It works if the text is short enough, and fails when the text is longer. That's the kind of "CSS thinking" that is fundamental to this trade.

Direct Link to ArticlePermalink

The post Min and Max Width/Height in CSS appeared first on CSS-Tricks.



from CSS-Tricks https://ift.tt/2rNdcAc
via IFTTT

No comments:

Post a Comment

Partly Cloudy today!

With a high of F and a low of 16F. Currently, it's 21F and Partly Cloudy outside. Current wind speeds: 7 from the West Pollen: 0 ...