Element with width set as percentage

(images with max-width: 100%;)

Resize your browser window to see its effect. "Ctrl + Shift + M" if you're cool and use Firefox.

div with width: 80%;

Element with width set with max()

div with width: max(80%, 400px);

return to blog