The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › min-width problem
Okay, someone please explain why’s the div occupying the whole with on page? I used min-width to prevent it from doing it, but still..
I also changed the width of h1 as it’s block and would force div to stretch…
http://jsfiddle.net/ZadWv/
min-width: 200px; – element will occupy space from 200px and up. max-width: 200px – element will occupy space from 0px to 200px.
min-width: 200px;
max-width: 200px