max css functions to work with
Submitted by G. C.
I want to be able to use the common
margin: auto property, but with a minimum margin, such as:
margin: 0 max(auto, 16px);
This would center an element horizontally & still enforce 16px of margin on either side when the viewport is too small.
Vote by sharing on Twitter
What are votes for and how are they tallied?