What i have:
HTML:
<div class="container">
<div class="text">
Some long text
</div>
<div class="extendable">
<img>
</div>
</div>
CSS:
.container {
float: right;
min-width: 10em;
padding-left: 1em;
.text {
padding: 0.3em;
}
}
Every block has dynamic width and height.
http://jsfiddle.net/vZ4eA/
What i want:
.text
shouldn't be able to extend .container
if the content gets too big. There should be a forced line break.
.extendable
on the other hand should make container
bigger if the content exceeds the width (behave normally).