AllThingsSmitty / css-protips

⚡️ A collection of tips to help take your CSS skills pro 🦾
Creative Commons Zero v1.0 Universal
28.34k stars 2.17k forks source link

Max Function for Max-Width #158

Closed shayanfpg9 closed 2 years ago

shayanfpg9 commented 2 years ago

Hi, I had a request, can I add max function to this repository?

div {
    max-width: max(50vw, 300px);
}

to show if document width less than 300px the max width of div be 300px else the max width of div will be 50vw.

Thank you

thepushp commented 2 years ago

Hi is this issue still open can you assign to me