bukxasmens
New Member
I've been looking for answer for some time now & was tinkering with it for a while but cannot seem to find solution.Probably it's easy as hell but I cannot wrap my head around it.I'v got image with inline style of 'max-width:44%' wrapped in container.How do I make container to be the same width as image inside it? \[code\]<div class="post" ><img src="http://placekitten.com/200/300" style="vertical-align:bottom; max-width:44%;"/> </div>.post{position:relative; display:inline-block; border: 1px solid lime; }\[/code\]Here's jsfiddle example: http://jsfiddle.net/37Fyb/2/