title: Stretch a div based on its content
body: <p>I have a select list and a div in a page. content of the div is depended on the list selected item and it is filled using javascript. I want div to stretch accordion to its content I don't mean the scrollbar,I mean changing in width and height of the div. </p>
  
  <p>should I use javascript for doing it or it is possible using CSS ?</p>