Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Sep 2007
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    is there a way to validate the filter property in CSS?

    I wanted to validate my CSS but I couldn't, because of the filter property used for a PNG image that wouldn't display in IE.

    Is there any way possible to validate my CSS and still use this property?

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,930
    Thanks
    6
    Thanked 1,041 Times in 1,014 Posts
    No, the filter property is not part of the official W3C standards and will therefore never be valid (according to these standards). What you can do, though (and what I’m always doing), is to put the IE specific styles into a separate, IE specific stylesheet and put it in (hidden) conditional comments in your HTML. The validator and any browser other than Internet Explorer will parse it as regular comment, and thus just ignore it.

  • Users who have thanked VIPStephan for this post:

    angelinbnv (09-15-2007)

  • #3
    New to the CF scene
    Join Date
    Sep 2007
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thank you so much for your help. I have included IE conditional comments and everything validates.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •