In CSS how can I use the max between 100% and max-content

Viewed 107

So i need to always have my width to 100%, except when max-content is longer.

width: max(100%, max-content);

Something like that but isn't working

1 Answers

You can try this

width : 100%;
max-width: max-content;

Related