Repository navigation
I want min and max css functions to work with auto #77
Replies: 7 comments 1 reply
|
Just tried to do this today, didn't realize it wasn't supported! I would love to be able to do this. My specific usecase was "margin-top" in a vertical flex container. The item should align to the bottom edge of the container if the container is larger than the content, but if the container is the same size as the content then there should be a minimum 1em gap between it and the preceding element. |
|
Count me in for this one. |
|
I've recently been testing Instead I'm using I can see good a use case for |
|
+1 |
|
I've also encountered this issue. As of 2023, CSS functions such as |
|
It's unfortunate that this has not been implemented yet. |
|
For some of the properties like For the specific example in the OP, it's more complicated, because what margin does |
Uh oh!
There was an error while loading. Please reload this page.
I want to be able to use the common margin: auto property, but with a minimum margin, such as:
This would center an element horizontally & still enforce 16px of margin on either side when the viewport is too small.
See: https://webwewant.fyi/wants/98/
All reactions