Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS CSS to make paragraph change color when hovering with mouse

  • This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #32929
    S!lver
    Member

    I added a class to a paragraph on my page that is supposed to change the text to red when you hover with the mouse but it is not working… can anyone tell me what i have done wrong? http://beckenhauerconstruction.com/current_projects.html the paragraph for Heroes Park is the one that should change. thanks!

    #74868
    wolfcry911
    Participant

    and where is the css to address that class?

    #74861
    S!lver
    Member

    here is the css for that paragraph

    .chngcolor {
    font-family:Arial, Helvetica, sans-serif;
    font-size:large;
    overflow:auto;
    color:#CCC;
    }
    .chngcolor:hover {
    color: #COO;
    }

    #74863
    TheDoc
    Member

    I think what wolfcry is trying to say is that the CSS isn’t being applied to the paragraph. Which makes me think maybe the CSS file hasn’t been uploaded?

    #74857
    jimsilverman
    Member

    viewed the source, the CSS you posted isn’t anywhere on the site. that could be the problem ;)

    #74859
    S!lver
    Member

    I uploaded it again just to make sure, but it still isn’t working..do i need to name it as the paragraph class within the div class for the css to work?

    #74853
    snillor
    Member

    Checking your CSS through W3C CSS validator says that on line 358, for chngcolor:hover, #coo is not a valid color 3 or 6 hexadecimals numbers #COO.

    Did you enter o (letter O) instead of 0 (numerical zero)?

    #74841
    S!lver
    Member

    that was it! thanks for your help!

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘CSS’ is closed to new topics and replies.