Ash
Ash

Reputation: 1298

Word-break: break-all; - what's to replace with?

I have this:

 <div style="word-break: break-all; width 50px;">... long text ...</div>

It works just as I'd like to

But the editor says:

 CSS validation: 'word-break' is not  avalid CSS property name.

What should I use instead?

Upvotes: 1

Views: 673

Answers (2)

Aron Rotteveel
Aron Rotteveel

Reputation: 83163

It seems word-break is a CSS3 property. There is no CSS alternative and your editor is most likely not up to date with the latest CSS standards.

Upvotes: 0

tvkanters
tvkanters

Reputation: 3523

word-break is valid indeed, but only in CSS3. Are you sure that your validator is set to CSS3 rather than CSS2 or lower?

Upvotes: 1

Related Questions