Hi all,
check the following code:
<style>div {border:1px solid black; margin:3px;white-space:nowrap;}</style>
<div style=”float:left”>
<div>1<div style=”float:left;margin:0px;border:none”>2</div></div>
<div>Text that the outer div should adjust to</div>
</div>
It does not display as I want it to. What I want is:
– the outer div should auto-size to exactly fit the div with the long text
– the div with the long text should also size-down to exactly fit the text
– the “1” should be displayed in the upper box aligned to the left, the “2” should be displayed in the upper box aligned to the right
I cannot use and fixed widths because the texts are dynamic.
Can anybody help??