Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css hover change more than one element

/*** HTML code ***
<div class="card">
  <h2>My title</h2>
  <p>This is my content</p>
</div>
*/

.card:hover { background: #abeafe; }
.card:hover h2 { color: #000; }
.card:hover p { color: #333; }
 
PREVIOUS NEXT
Tagged: #css #hover #change #element
ADD COMMENT
Topic
Name
2+3 =