Click to See Complete Forum and Search --> : can you validate filter: ?


kender
09-29-2005, 12:12 PM
When trying to use this code
* a:hover {
filter: blur (
add: 0;
direction: 45;
strength: 3;
);
height: 0;
}


I get these errors using W3 CSS validator
Line: 161 Context : a:hover
Property filter doesn't exist : blur

Line: 162 Context : a:hover
Parse Error - ( add: 0;

Line: 167
Parse Error - : 45; strength: 3; ); height: 0; }


Is there a way to make this validate?

Fang
09-29-2005, 12:21 PM
No

kender
09-29-2005, 12:39 PM
Well, thank you for that in depth analysis of my problem and concise feedback, I will cherish the time spent on resolving this issue with fond memories and great sorrow at my loss.

Fang
09-29-2005, 01:02 PM
The long answer:
If it is not in the W3C CSS Specs (http://www.w3.org/Style/CSS/#specs) it will not validate.

d4p41n
09-29-2005, 01:07 PM
:) the answer from fang wasn't really deep.
But maybe i have an idea what this error could mean.

in css, there are some codes which only special browser understand.
for example:

- Mozilla
-moz-opacity:
- Internet Explorer
filter:

as you can see filter is a special command for internet explorer. therefor i guess the w3c validator is thrown this error.

i guess the the best way is to draw (create) two images and show the none bluered image when you are not above the link and another (blured) image which you above the link.

best regards,
d4p41n

NogDog
09-29-2005, 01:26 PM
If it's not here (http://www.w3.org/TR/CSS21/propidx.html), then it's not an attribute defined as part of the CSS-2 specification, so it's not going to validate as such. (And it makes me wonder sometimes if IE6 might actually have decent CSS support by now if MS hadn't spent so much development time on all those filters. :rolleyes: )

kender
09-29-2005, 01:31 PM
thanks everyone for the info, and the help, it is really frustrating that IE allows something that isnt standardized.. but MS was always like that, werent they

kender
09-29-2005, 01:33 PM
though i do find it funny, that that page, NogDog, uses tables :P

so outmoded!

Kravvitz
09-29-2005, 01:56 PM
Umm... it's actually displaying tabular information. Wouldn't a table be the most semantically correct element to mark it up?

Lerura
09-29-2005, 01:58 PM
http://www.ssi-developer.net/css/visual-filters.shtml

David Harrison
09-29-2005, 02:37 PM
Tables are great for tabular data, it's what they were designed for, using them for layout though (like you do on your site (http://kender.org/) ;)), that's when they're not so good.

<mini-plug>
http://www.hddkillers.com/100805/list.php
</mini-plug>

felgall
09-29-2005, 04:08 PM
CSS entries such as filter and -moz-opacity are proprietary addons that are only recognised by the specific browsers that they are addons for. Using a different browser such as Opera, Safari, Konqueror (or any of the hundreds of others) will mean that the effect that the addon is supposed to generate will not be seen. You can tell when you use such browser specific code because it will fail validation.