+6

Someone please help differentiate for me between "min-width" and "max-width" in HTML?

4/17/2019 12:00:55 PM

Okiring Millan Edward

5 Answers

New Answer

+13

The min-width property defines the minimum width of an element. >If the content is smaller than the minimum width, the minimum width will be applied. >If the content is larger than the minimum width, the min-width property has no effect. ------------------------------------------------------ The max-width property defines the maximum width of an element. -If the content is larger than the maximum width, it will automatically change the height of the element. -If the content is smaller than the maximum width, the max-width property has no effect. Well bro its a CSS property Thanks

+6

Thats css function. Min-width its mean that part can't be smaller than the min-width value. Max-width its mean that part can't be bigger than the max-width value. you can test it by resizing your browser.

+3

Yeah you can say that in HTML But Actually that's CSS As you asked Min-width property define minimum width for your element or object....The element or object will not be smaller than min-width On the other hand max-width is the maximum width property... A object or element can not be wider than max-width /* Bonus: Try to use these properties in CSS as it is good practice */

+3

Sodium United Please keep the discussion appropriate.

0

Imagine <content removed> and the rest will come