width: auto;
overflow: hidden;
background-color:silver;
border: thin solid black;
i have div1 with above css
in this div is a button control AND A TEXTBOX CONTROL
in some system when this div is displayed it appears properly wrapped around the textcontrol
but in some the div width is much wider than the text control
so the div appears in such a way that more 4 - 5 text control can be fit in it