Account
Categories
Shobha
Shobha
The best way to predict the future is to invent it

What is the difference between max-width and min-width in CSS?

The max-width property sets the maximum width an element can have, while min-width sets the minimum width. These properties help make designs responsive.
For example,

.box { max-width: 600px; min-width: 300px; }