Posted by Brian Cryer on 09/22/06 16:32
"Jonathan N. Little" <lws4art@centralva.net> wrote in message
news:8a9ad$4513f4bd$40cba77e$21965@NAXS.COM...
> Brian Cryer wrote:
> <snip>
>
>> As an alternative, why not use the word-wrap css, for example:
>>
>> <p style="width: 5em; word-wrap: break-word">12345678901234567890</p>
> ^^^^^^^^^^^^^^^^^^^^^
> word-wrap? You won't find it here
>
> <http://www.w3.org/TR/CSS21/propidx.html>
>
> That is an MS thingy..... If OP really wants to force breaking lines
> intra-words of user input he needs to process server-side with some
> function that counts characters or looks for specific character to break
> on like '/' and insert BRs into the markup <= some maximum character
> length within the string....
The trouble with w3c is that they have too many working draft documents.
Take a look at http://www.w3.org/TR/css3-text/, that's the document from
which I learnt about word-wrap.
--
Brian Cryer
www.cryer.co.uk/brian
[Back to original message]
|