html - div width fit to its content and overflow its parent -
take @ html:
<div class="parent_container"> <div class="container"> <div class="item"> <img src="http://mountainguides.com/wordpress/wp-content/uploads/2010/11/illinizas-photo-ty-gimenez.jpg"/> </div> <div class="item"> <img src="http://mountainguides.com/wordpress/wp-content/uploads/2010/11/img_0700.jpg"/> </div> </div> </div>
i'm trying make div: item
line in 1 row , div: container
width auto resize fit children. don't know number of div: item
can't specific width div: container
.
here jsfiddle: http://jsfiddle.net/trongcuong1710/cdqsj/4/
.container { position:absolute; float:left; width: 100%; min-width:1px; }
is this (jsfiddle.net/cdqsj/7/) want?
Comments
Post a Comment