Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

What's the difference between width:100% and min-width:100%

What’s the difference between width:100% and min-width:100% for body

body{
width:100%
}

and

body{
min-width:100%
}

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

If you set the width parameter for body, the page size will always be the size of your screen. At the same time if you set min-width parameter for body it will be the same size as your screen but it can increase. This is hard to see, but if we were to change the screen size the difference would be visible.

More info

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading