I need to allow word break/word wrap in the following structure :
<ul>
<li><strong>Forename</strong><span>forename value</span></li>
<li><strong>Forename</strong><span>forename value</span></li>
<li><strong>Forename</strong><span>forename value</span></li>
<ul>
I can't fix a width to the span or li as the number of li's might vary. Making li to display as table-cell helps to word-break the span content like shown in the image.
- Is there a way to make IE7 behave/understand table-cell ?
Edit :
My original problem is I'm trying to achieve a display like shown in the image below, but just that the content is getting cut at the right if long unbroken strings are given as input, instead of breaking the word.
I'm wondering why word-break:break-all doesn't take effect unless when span is made block or inline-block ?
Even when span is made inline-block, the next problem is how to make the subsequent content flow on the continuos line ?
Attached image : https://i.stack.imgur.com/1gB92.png
Any thoughts please ?