Forums

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

Home Forums CSS [Solved] CSS – Text disappears when clicked, reappears when released

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #169544
    onement
    Participant

    Not sure how to word that really, but I have text that when clicked (not released), just if i click and hold the click down, while holding down on the mouse the text disappears. When releasing the click it reappears. It only lasts as long as the click in other words….maybe someone can lead me in the right direction to where to look….thanks.

    #169555
    benjaminmisell
    Participant

    Maybe javascript but if you want pure css im not shure. Ill work on the js now.

    #169556
    Paulie_D
    Member

    Is this a requirement or a problem…it’s not clear?

    :active will do that for you if it’s a requirement.

    http://jsfiddle.net/vw292/

    #169557
    benjaminmisell
    Participant

    Here you go (JS) CodePen Code

    #169558
    benjaminmisell
    Participant

    That works. Better than my method

    #169581
    onement
    Participant

    Yes, the Codepen Code that benjamin posted is what it is doing and I do not want it. It is a problem.

    This is a link to where i think the text is

    https://gist.github.com/anonymous/f352ddaf7f69617042e1

    This is it in it’s entirety

    https://gist.github.com/anonymous/fede33d22326d377b145

    I see the :active but I can’t just remove the “:active” can I, because doesn’t isn’t that a sort of rule for when the text IS active? Again, I’m new to this…Thanks.

    #169583
    onement
    Participant

    Wolfcry – thanks, I changed the active colors and it worked. NICE!

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