I have a layout similar to:
I would like for the div to only exp
div
A CSS2 compatible solution is to use:
.my-div { min-width: 100px; }
You can also float your div which will force it as small as possible, but you'll need to use a clearfix if anything inside your div is floating:
.my-div { float: left; }