How To Use Hover And Active Css

Forums CSSHow To Use Hover And Active Css
Staff asked 3 months ago

How to use hover and active CSS.

Answers (2)

Add Answer
Umang Ramani Marked As Accepted
Staff answered 3 months ago

For Active class :

*yourclass*:active {
  background-color: yellow;
}

 

For Hover class:

*YourClass*:hover {
  background-color: yellow;
}

 

Staff answered 3 months ago

For hover:

a {
  color: green;
}

a:hover {
  color: yellow;
}

For active:

a {
  color: green;
}

a:hover {
  color: yellow;
}

a:active {
  color: purple;
}

 

Subscribe

Select Categories