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.
The forum of the forums
2 posters

    HTML Style Hover

    !_NICK_!
    !_NICK_!
    Active Poster


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

    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.

    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.
    Sanket
    Sanket
    ForumGuru


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

    Solved Re: HTML Style Hover

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

    Topic Solved & Locked

      Current date/time is September 22nd 2024, 11:19 pm