Hi,
xeroxero wrote:
Not 100% ASP.NET, more like a Visual Studio question. I have
attributes like "opacity" in my .css, and Visual Studio 2005 is
flagging it as an error, when I definitely need them. How can I turn
that validation off? Is it MSBuild that is actually generating this,
or is it VS.NET 2005?
Thanks.
In the menu "Tools / Options / Text editor / HTML / Validation", you can
set the validation's Target as well as prevent errors from being
displayed. "opacity" is not a standard CSS attribute, which is why the
validator protests. Unfortunately, I don't believe that there is a
standard way of setting opacity in CSS nowadays (but I might be wrong).
I would think twice before turning validation off. It's a precious help
also just for the learning effect. Besides, these errors are indicative
only and do not prevent compilation or have an effect on the application
at runtime.
The validation is made by... a validator :-) which VS2005 calls.
HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering:
http://www.galasoft-LB.ch
PhotoAlbum:
http://www.galasoft-LB.ch/pictures
Support children in Calcutta:
http://www.calcutta-espoir.ch