set max font size code example Example: how to set font max width in css div { font-size: clamp(16px, 3vw, 32px); }