I want min and max css functions to work with auto

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.

Do you want this too? Share it!
Votes
0
Vote by sharing on Twitter
What are votes for and how are they tallied?
Tagged
CSS