Tengo una demo aquí that shows what I'm aiming for. I want to wrap a line of text so that two lines of it fit in with the rest of the body text.
The catch is, my example has a br tag. The text that I want to wrap does not contain a br tag.
The box should expand or contract horizontally as required to make the text wrap to two lines.
I can get reasonably close with este. The text is wrapped, but the parent container won't shrink.
preguntado el 27 de agosto de 11 a las 14:08
If you want the width to be dynamic (ie, change on browser resize etc) you would need to incorporate the hack into the resize event handler.