Title: CSS for hover color
Last modified: April 17, 2017

---

# CSS for hover color

 *  Resolved [jazzymktg](https://wordpress.org/support/users/jazzymktg/)
 * (@jazzymktg)
 * [9 years ago](https://wordpress.org/support/topic/css-for-hover-color/)
 * _[Moderator note: moved to Fixing WordPress sub-forum]_
 * After inspecting the code for one of my elements, it says the element I’m looking
   to edit is h4. I have a CSS code on all heading types, but can’t figure out how
   to change just one of them for the purpose of hover colors.
 * Here’s the code I have for all headers with a tag:
 * #ctaheader h1:hover, #ctaheader h2:hover, #ctaheader h3:hover, #ctaheader h4:
   hover #ctaheader h5:hover, #ctaheader h6:hover {
    color: #dd3333 !important; }
 * And I guess, essentially what I’m trying to do is something like:
 * #ctasubhead h4:hover {
    color: #ffffff }
 * Oh, and did I mention it’s going to have to change per page? 🙂
 * Please help!
    -  This topic was modified 9 years ago by [bdbrown](https://wordpress.org/support/users/bdbrown/).

Viewing 1 replies (of 1 total)

 *  Thread Starter [jazzymktg](https://wordpress.org/support/users/jazzymktg/)
 * (@jazzymktg)
 * [9 years ago](https://wordpress.org/support/topic/css-for-hover-color/#post-9038559)
 *     ```
       #ctaheader h1:hover, #ctaheader h2:hover, #ctaheader h3:hover, #ctaheader h4:hover #ctaheader h5:hover, #ctaheader h6:hover {
       color: #dd3333 !important;
       }
       ```
   
 *     ```
       #ctasubhead h4:hover {
       color: #ffffff
       }
       ```
   
 * Sorry, maybe that’s a little easier to read.

Viewing 1 replies (of 1 total)

The topic ‘CSS for hover color’ is closed to new replies.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [element](https://wordpress.org/support/topic-tag/element/)
 * [hover color](https://wordpress.org/support/topic-tag/hover-color/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [jazzymktg](https://wordpress.org/support/users/jazzymktg/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/css-for-hover-color/#post-9038559)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
