CSS2 Test Suite: 10.4 min-width

[index page] [section] [Previous] [Next] [Specification]

The style declarations contained within this page:

.test {background-color: silver;}
.cl1 {width: 50px; min-width: 50%;}
.cl2 {min-width: 500px;}


[test cl1] This 'p' element has been set to have a width of 50px, but a minimum width of half its parent element's content-width. Thus its width should be half that of its parent element, unless the parent element is 100 pixels or narrower, in which case this element will be 50 pixels wide.

[test cl2] This 'p' element has been set to have a minimum width of 500px. Thus its width should never be narrower than 500 pixels, no matter how narrow its parent element's content-width may become.


[index page] [section] [Previous] [Next] [Specification]