By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,788 Members | 1,115 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,788 IT Pros & Developers. It's quick & easy.

CSS validation question

P: n/a
Hi all,

In the CSS I'm working on I have code along the following lines:

#pageMenu a {
[style info] }

This seems fine to me, but I'm obviously wrong as it doesn't validate. I
just wondered if someone could tell me specifically why this is, as the
validator itself doesn't give any clue?

The site is at www.nowpc.co.uk

Thanks in advance,
Neil

e-mail: take THIS out
Jul 20 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a

"NWhite" <ne********@THISneilwhite.org.uk> wrote in message
news:Ve*******************@doctor.cableinet.net...
Hi all,

In the CSS I'm working on I have code along the following lines:

#pageMenu a {
[style info] }

This seems fine to me, but I'm obviously wrong as it doesn't validate. I
just wondered if someone could tell me specifically why this is, as the
validator itself doesn't give any clue?


The blendTrans macro is IE-specific, so the validator doesn't know how to
read blendTrans(duration=0.5).

Jul 20 '05 #2

P: n/a
"NWhite" <ne********@THISneilwhite.org.uk> wrote in message
In the CSS I'm working on I have code along the following lines:

#pageMenu a {
[style info] }

This seems fine to me, but I'm obviously wrong as it doesn't validate. I
just wondered if someone could tell me specifically why this is, as the
validator itself doesn't give any clue?

"Harlan Messinger" replied The blendTrans macro is IE-specific, so the validator doesn't know how to
read blendTrans(duration=0.5).


Hi Harlan,

Thanks for the reply. So is that why the [#pageMenu a] style is shown as an
error? Is the validator being thrown a curve that it can't deal with? Why
doesn't it just reject the blendTrans?
Jul 20 '05 #3

P: n/a

"NWhite" <ne********@THISneilwhite.org.uk> wrote in message
news:BN*******************@doctor.cableinet.net...
"NWhite" <ne********@THISneilwhite.org.uk> wrote in message
In the CSS I'm working on I have code along the following lines:

#pageMenu a {
[style info] }

This seems fine to me, but I'm obviously wrong as it doesn't validate. I just wondered if someone could tell me specifically why this is, as the validator itself doesn't give any clue?
"Harlan Messinger" replied
The blendTrans macro is IE-specific, so the validator doesn't know how
to read blendTrans(duration=0.5).


Hi Harlan,

Thanks for the reply. So is that why the [#pageMenu a] style is shown as

an error? Is the validator being thrown a curve that it can't deal with? Why
doesn't it just reject the blendTrans?


It *is* rejecting it. It's telling you that it's invalid. What do you think
"validate" means? "Ignore all the invalid constructs in my code and then
tell me that my code is valid anyway"?

Jul 20 '05 #4

P: n/a
"NWhite" wrote in message
> In the CSS I'm working on I have code along the following lines:
>
> #pageMenu a {
> [style info] }
>
> This seems fine to me, but I'm obviously wrong as it doesn't validate.
I
> just wondered if someone could tell me specifically why this is, as the > validator itself doesn't give any clue?


"Harlan Messinger" replied The blendTrans macro is IE-specific, so the validator doesn't know how to read blendTrans(duration=0.5).

Neil White replied Hi Harlan,

Thanks for the reply. So is that why the [#pageMenu a] style is shown as

an
error? Is the validator being thrown a curve that it can't deal with? Why doesn't it just reject the blendTrans?


"Harlan Messinger" replied It *is* rejecting it. It's telling you that it's invalid. What do you think "validate" means? "Ignore all the invalid constructs in my code and then
tell me that my code is valid anyway"?


Not quite, Harlan :-)

My point was that the specific problem wasn't highlighted. As it is, valid
code was shown as an error - hence the post. Of course, you're right though:
the CSS validates fine without the filter:blendTrans line; yes, it was my
fault for not checking its validity before using it.

Thanks for the help,
Neil White
Jul 20 '05 #5

P: n/a

"NWhite" <ne********@THISneilwhite.org.uk> wrote in message
news:HJ*******************@doctor.cableinet.net...
"NWhite" wrote in message
> > In the CSS I'm working on I have code along the following lines:
> >
> > #pageMenu a {
> > [style info] }
> >
> > This seems fine to me, but I'm obviously wrong as it doesn't validate.
I
> > just wondered if someone could tell me specifically why this is,
as the
> > validator itself doesn't give any clue?

"Harlan Messinger" replied > The blendTrans macro is IE-specific, so the validator doesn't know
how to
> read blendTrans(duration=0.5).
Neil White replied Hi Harlan,

Thanks for the reply. So is that why the [#pageMenu a] style is shown
as an
error? Is the validator being thrown a curve that it can't deal with?

Why doesn't it just reject the blendTrans?


"Harlan Messinger" replied
It *is* rejecting it. It's telling you that it's invalid. What do you

think
"validate" means? "Ignore all the invalid constructs in my code and then
tell me that my code is valid anyway"?


Not quite, Harlan :-)

My point was that the specific problem wasn't highlighted. As it is, valid
code was shown as an error - hence the post.


I see what you mean. By the way, though, it would have been helpful if you
had provided the error messages in your original posting.
Jul 20 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.