CodeZettaInterview Hub

CSS · Box Model · Mid-Level · Best Practice

min-width/max-width vs width — when?

Short Interview Answer

Constraints allow intrinsic/content sizing with clamps; width is preferred size.

Detailed Explanation

Useful responsive patterns: width 100%; max-width 40rem. min-width:0 critical in flex.

Did you know this answer?