The max() Function
Use max() to set the width of the div to whichever value is largest, 50% or 300px:
This div has a width of max(50%, 300px). Resize the browser window to see the effect.