Day 5: the max() function

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