MrM
MrM

Reputation: 21999

Validation (CSS 3.0): 'word-wrap' is not a known CSS property name

I am using css 3.0 in order to use the word-wrap function and I get the following error. 'Validation (CSS 3.0): 'word-wrap' is not a known CSS property name'. What do I do? I have the cascading version set for css3.

word-wrap: break-word;

Upvotes: 1

Views: 2521

Answers (2)

Joseph
Joseph

Reputation: 119847

it's still a draft: http://caniuse.com/#search=word-wrap but older browsers (Firefox) support it

This property specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit within the line box...

...For legacy reasons, UAs may also accept ‘word-wrap’ as an alternate name for the ‘overflow-wrap’ property. However this syntax non-conforming in author style sheets. (http://www.w3.org/TR/css3-text/#word-wrap)

Upvotes: 0

steveax
steveax

Reputation: 17743

Try overflow-wrap instead:

overflow-wrap: break-word;

Upvotes: 3

Related Questions