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

Time:06-26

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

CodePudding user response:

You should use this

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

  • Related