Title: CSS affecting another element on hover
Last modified: January 18, 2023

---

# CSS affecting another element on hover

 *  [lenavigateur](https://wordpress.org/support/users/lenavigateur/)
 * (@lenavigateur)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/css-affecting-another-element-on-hover/)
 * Hello,
 * On the intro page I mentioned, I would like the second line to become black when
   the first is hovered, and the first to become white when the second is hovered.
 * How can I achieve that? Thank you!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcss-affecting-another-element-on-hover%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [Shahin](https://wordpress.org/support/users/skalanter/)
 * (@skalanter)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/css-affecting-another-element-on-hover/#post-16388188)
 * Hello [@lenavigateur](https://wordpress.org/support/users/lenavigateur/),
 * To achieve it, you need customization;
    Here is an example: [https://stackoverflow.com/questions/6910049/on-a-css-hover-event-can-i-change-another-divs-styling](https://stackoverflow.com/questions/6910049/on-a-css-hover-event-can-i-change-another-divs-styling).
 * Also, maybe you can find a plugin to do this: [https://wordpress.org/plugins/](https://wordpress.org/plugins/).
 * I hope that helps.
    Best Regards

Viewing 1 replies (of 1 total)

The topic ‘CSS affecting another element on hover’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/oceanwp/4.1.6/screenshot.png)
 * OceanWP
 * [Support Threads](https://wordpress.org/support/theme/oceanwp/)
 * [Active Topics](https://wordpress.org/support/theme/oceanwp/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/oceanwp/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/oceanwp/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Shahin](https://wordpress.org/support/users/skalanter/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/css-affecting-another-element-on-hover/#post-16388188)
 * Status: not resolved