HTML & CSS: Make anchor tag hover override span text color

I recently had a project where I could not figure out the proper way to get his to work for a few hours. I wanted to create a button that had text in two different colors, but when the button was hovered both text elements would change color at the same time.  The link and fiddle below were very helpful.

http://jsfiddle.net/tRRRV/1/

http://stackoverflow.com/questions/14321466/need-different-color-of-span-in-anchor-for-alink-same-for-ahover

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s