+ 1

Width in css

Can anyone explain the difference between width,max-width. And min-width?? I don’t get them

6th Jul 2019, 10:46 AM
Majd Alkwaja
Majd Alkwaja - avatar
5 ответов
+ 2
Let's say you have a div which, width = 80vw (80% of screen width) Then you can specify a minimum width, meaning the div will not be able to shrink below this minimum width. Same principle apply to max width
6th Jul 2019, 10:59 AM
Drax
Drax - avatar
+ 2
See min width and max width as boundaries width can not exceed
6th Jul 2019, 11:46 AM
Drax
Drax - avatar
+ 1
Nope
6th Jul 2019, 11:13 AM
Drax
Drax - avatar
0
and for the width it can shrink and exceed both??
6th Jul 2019, 11:12 AM
Majd Alkwaja
Majd Alkwaja - avatar
0
so what???
6th Jul 2019, 11:18 AM
Majd Alkwaja
Majd Alkwaja - avatar