Afficher un message
Vieux 07/04/2008, 08h01   #14
removeps-groups@yahoo.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to wrap text in <p> tag if the text has no spaces and is verylong

On Apr 6, 11:48 am, dorayme <doraymeRidT...@optusnet.com.au> wrote:
> "Jukka K. Korpela" <jkorp...@cs.tut.fi> wrote:


> No, of course not, you want unconditional surrender, and to humiliate at
> every opportunity. You really are quite a bastard!


Just browsing I found a new properties in CSS 3 "text-wrap" and "word-
wrap".

http://www.w3.org/TR/css3-text/#text-wrap

The word wrap thing works in IE 7, but not Firefox 5or Opera 9.26.

<body style="word-wrap:break-word">
LongLongLongLongLongLongLongLongLongLongLongLongLo ngLongLongLongLongLongLongLongLongLongLongLongLong LongLongLongLongLongLongLongLongLongLongLongLongLo ngLongLongLongLongLong
</body>
</html>

BTW, "text-wrap:unrestricted" did not work in IE 7 -- the description
of it sounds like it does the same thing as word-wrap:break-word, but
I'm probably reading something wrong.

This word-wrap is in the MSDN web pages at
http://msdn2.microsoft.com/en-us/lib...86(VS.85).aspx, so I
guess they support this property of CSS 3.

Anyway, this "monstrosity" seems important enough that someone put new
properties into CSS 3.
  Réponse avec citation
 
Page generated in 0,05045 seconds with 9 queries