Friday, December 2, 2011

CSS3 Word Wrap(word-wrap) property with example


The word-wrap property allows to force the text to wrap.
That is, even it also split it in the middle of a word for wrapping.

syntax of this property is

word-wrap: normal|break-word;

All the latest browsers support this property.

The possible values are

  • normal : Break words only at allowed break points
  • break-word : Allows unbreakable words to be broken


JavaScript syntax of this property is object.style.wordWrap="break-word"

Example for text-shadow property..
p.test {word-wrap:break-word;}



Stumble
Delicious
Technorati
Twitter

0 Comments:

Post a Comment