TagCopperLight
TagCopperLight

Reputation: 75

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

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

Upvotes: 7

Views: 1820

Answers (1)

Alimuhammadiii
Alimuhammadiii

Reputation: 309

You can try this

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

Upvotes: 12

Related Questions