The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

HTML Style Hover

2 posters

Go down

Solved HTML Style Hover

Post by !_NICK_! December 20th 2012, 9:55 am

Okay, so I've even searched Google and couldn't find anything. I want to know how to add a hover effect in html styles.

Example,
Code:
<div class="test" style="{color:black} :hover {color: orange}"></div>

The code above does now work; however, I'm asking how to fix this code above? This has got me stumped terribly.
!_NICK_!
!_NICK_!
Active Poster

Male Posts : 1505
Reputation : 69
Language : English, HTML, and CSS
Location : In the middle of no return.

Back to top Go down

Solved Re: HTML Style Hover

Post by !_NICK_! December 20th 2012, 1:43 pm

I know you can't have the brakets. Razz

I was showing an example.

Solved.
!_NICK_!
!_NICK_!
Active Poster

Male Posts : 1505
Reputation : 69
Language : English, HTML, and CSS
Location : In the middle of no return.

Back to top Go down

Solved Re: HTML Style Hover

Post by Sanket December 20th 2012, 5:50 pm

Topic Solved & Locked
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum