min-width, max-width

{ min-width:200px; max-width:400px }

This div also has a width of 50%. Resize the window to grow and shrink the div from max to min width.

The outer div controls the width of the inner "content" div. Note that the div height increases to accommodate the flow of text.

<< 200px wide >>
<< 400px wide >>



[Right-click and choose View Source from the shortcut menu.]

© 2007 Microsoft Corporation. All rights reserved. Terms of use.