Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I am developing a asp.net website. When I used the CSS property "word-wrap", VIsual Studio 2010 is showing a warning: Validation (CSS 2.1) 'word-wrap' is not a known CSS property name.

When I tested the website, it is working fine. However, can there be any issue in using this property ignoring the warning?

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

You may ignore css warnings as far as they do not break your page layout. However, if you do not use HTML validation in your development, you may turn off it as well.

You'll need to turn off HTML Validation:

  • Tools > Options > Text Editor > HTML > Validation
  • Uncheck the "Show Errors" check box.

And CSS file error detection:

  • Tools > Options > Text Editor > CSS > CSS Specific
  • Uncheck "Detect Errors"
share|improve this answer
add comment

Anything that is proprietary will only work in the browser that it is for. In other browsers, it is simply ignored. So in some way it is safe to ignore the warning, as long as you know it will not break the layout of the page in browsers that do not support the feature.

As far as the feature itself, from what I checked, it is a CSS3 feature. Which is why it will not validate as CSS2.1:

http://stackoverflow.com/questions/5923936/how-to-use-the-word-wrap-property-in-css-2-1-and-validate-css

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.