Hi, everyone! Why do we set the Min and Max width of an element in CSS | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Hi, everyone! Why do we set the Min and Max width of an element in CSS

CSS

29th Jun 2019, 3:51 AM
Ogundare Taiwo
Ogundare Taiwo - avatar
4 Answers
+ 4
To fit our page on different screen size of platform like mobile, tablets, computers etc.
29th Jun 2019, 4:15 AM
A͢J
A͢J - avatar
+ 4
We fixing the boundary of elements so those elements can't go beyond the it's boundary.
30th Jul 2019, 7:27 AM
Sanjay Soni
Sanjay Soni - avatar
+ 1
Min width/min height of a div means it should not be less then the given width/height but when the elements increase and does not get fit in then it can increase the width/height. Overall it makes a div flexible.
5th Jul 2019, 6:54 AM
Praveen Kumar Premaram Prajapati
Praveen Kumar Premaram Prajapati - avatar
0
Because you are make website for all different screen size such as tablets, laptop, mobile and computers etc. To fit your website page to use min and Max width in CSS. You can also use to RWD.
17th Aug 2019, 3:24 AM
🌠Ratnesh Rakesh Ranjan 🇮🇳
🌠Ratnesh Rakesh Ranjan 🇮🇳 - avatar