Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #25668

    How do I make the H1 Text change color when hovered over?

    Thanks much!

    Andy

    #127787

    Hi!

    The css code can vary (depends on the element you’re using, etc.) but try:

    a h1:hover{
    color: #333 !important;
    }

    Best regards,

    Peter

    #127788

    Hi,

    Thanks! Tried it, but didn’t work out.

    #127789

    Hi,

    What text are you trying to change? Can you give us a screenshot?

    Dude’s code should work.

    Regards,

    Ismael

    #127790

    Hi,

    The first text is H1 titled ” The Le Thriller Project “

    I used the css but it doesn’t change color when browsed over. I also turned it into a hyperlink to see if that hover effect would work, but didn’t.

    Thanks Ismael.

    #127791

    Hi Andy,

    Yes, it needs to be a link in order for the css above to work. What you need to do is target the specific heading you want to have the effect by inspecting the code and then use the :hover pseudo selector to give it a different color on hover.

    See: http://www.w3schools.com/cssref/sel_hover.asp

    Regards,

    Devin

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘How do I make the H1 Text change color when hovered over?’ is closed to new replies.