Has anyone tried using inline css pseudoclasses?


What I mean is, how would you take a:hover and put it inline.

Member Avatar for GreenDay2001

do you this by inline??

a:hover { color: #FF0000; }

Unfortunately, not by choice. I have to do things inline so that our marketing team can copy paste. I don't think there is a way...I had to result to using javascript.

do you this by inline??

a:hover { color: #FF0000; }
Member Avatar for GreenDay2001

Uh...i didn't understood what you really want. Post the problem clearly.

The problem is, how do you get "a:hover" to work inline.

Say I have a link:

<a href="#" style="text-decoration: none; color: #ff0000;">Some Link</a>

How do I make it so when I hover over it, it changes its style.

from #ff0000 to #0000ff or whatever other color.

The problem I'm having with this stype of inline implimentation is, I don't know were a:hover would fit in.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.