You are here : Home - Resources - FAQ - CSS Q1
FAQ - CSS Q1
Q1:How do I validate my style sheet when using IE filters?
A:The way you get around this problems is to remove the offending line from your style sheet. For example say you have a style like this
#mystyle {
background-color : red;
color:white;
filter:revealTrans(duration=.5, transition=3);
}
The
filter:revealTrans(duration=.5, transition=3); will cause you problems while validating.
The answer is to do the filter as a inline style like this
<div id="mystyle" style="filter:revealTrans(duration=.5, transition=3);"> Your Stuff </div>
You get a valid style sheet and you get valid HTML :)
back to faq