+ 2

What is the difference between max/min- width and width,max/min-height and height?

because when I see the output between them it definitely the same in px..

12th Sep 2017, 12:44 AM
Siti Nabilah Mz
Siti Nabilah Mz - avatar
5 ответов
+ 6
So: max / min - width * height or max / min - height * height ? If we are talking about a square, where the width and height are equal then there is no difference. Otherwise, we need to know what max or min represent in order to answer this question. Generally speaking (though this should be obvies), one is being subtracted by the width and height, and the other is being subtracted by the height squared.
12th Sep 2017, 12:49 AM
Rrestoring faith
Rrestoring faith - avatar
+ 6
here is an example for dom to understand changing widths https://code.sololearn.com/Wk8Wgk17wM98/?ref=app we use max and min for one reason : to fit what se made in a screen mostly for mobile devices. but you may need it for any reason which deponda on your needs
13th Sep 2017, 2:17 PM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
+ 5
you are welcome
13th Sep 2017, 2:50 PM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
+ 2
did you mean by margin, border , padding etc ? css also use % for measurement
12th Sep 2017, 7:26 AM
AFIF FARHAN BIN SUHAIME
AFIF FARHAN BIN SUHAIME - avatar
+ 1
okayy, thank you!
13th Sep 2017, 2:18 PM
Siti Nabilah Mz
Siti Nabilah Mz - avatar