small help in inline css

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
User avatar
azycraze
Forum Commoner
Posts: 56
Joined: Mon Oct 24, 2011 12:08 pm
Location: India

small help in inline css

Post 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>
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: small help in inline css

Post by Celauran »

User avatar
azycraze
Forum Commoner
Posts: 56
Joined: Mon Oct 24, 2011 12:08 pm
Location: India

Re: small help in inline css

Post by azycraze »

Your link results me a "No" to my question.
Anyway thanks for the link.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: small help in inline css

Post 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.
User avatar
azycraze
Forum Commoner
Posts: 56
Joined: Mon Oct 24, 2011 12:08 pm
Location: India

Re: small help in inline css

Post 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...
Post Reply