Page 1 of 1

small help in inline css

Posted: Wed May 16, 2012 10:58 am
by azycraze
we are familiar with

<style>
a.foo {
color:blue;
}

a.foo:hover {
color:green;
}

</style>

Can this be done using inline css style somewhat like

<a href='#' class='foo' style='.....' >hover me </a>

Re: small help in inline css

Posted: Wed May 16, 2012 11:00 am
by Celauran

Re: small help in inline css

Posted: Wed May 16, 2012 11:06 am
by azycraze
Your link results me a "No" to my question.
Anyway thanks for the link.

Re: small help in inline css

Posted: Wed May 16, 2012 11:10 am
by Celauran
azycraze wrote:Your link results me a "No" to my question.
It does more than that. Sure, it tells you that what you're asking can't be done (which is correct) but is also provides explanations as to why and presents alternatives to achieve the same end result.

Re: small help in inline css

Posted: Wed May 16, 2012 11:48 am
by azycraze
Ofcourse ,I got some alternative by using javascript.But i think i shall wait for some style-on-hover attribute in html8 or something...