Day 4: the min() function

from blog Manuel Matuzović - Blog, | ↗ original
↗ original
The min() function takes a comma separated list of expressions. The smallest value in the list will be selected.div { width: min(400px, 200px, 300px); /* width = 200px */ } This example doesn’t make much sense because the value will always be 200px. min() shows its true power when you use relative units. div { width: min(100%, 800px); } If...