CSS code for clicking an object/text? (3 posts)

  1. BK41794
    Posted 4 years ago #

    My site: http://itsbkinthemix.net
    I was wondering if anybody knows the css code for clicking on something. I've seen other sites that when you hover over their search button, it changes to a different color, and then when you click on the button, it changes to another color. I was wondering how to implement the color when clicking on something using css.

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Try googling on the CSS :hover pseudo class.

  3. Slobodan Manic
    Posted 4 years ago #

    Hi BK41794,

    I believe what you're looking for is :active pseudo-class

    You can check this page, it's pretty obvious from there:


    I hope that helps. Although, I think it can only be applied to elements.

Topic Closed

This topic has been closed to new replies.

About this Topic