WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. BK41794
    Member
    Posted 2 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 2 years ago #

    Try googling on the CSS :hover pseudo class.

  3. Slobodan Manic
    Member
    Posted 2 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:

    http://www.w3.org/Style/CSS/Test/CSS3/Selectors/current/html/full/flat/css3-modsel-19.html

    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