Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Removing Hover effect on specific tag

How can I remove the hover effect on my ‘h3’ tag (lighter grey hover effect). It should still be link that is why i put it inside of my ‘a’ tag.

.speakers a {
    color: var(--clr-grey);
}

.speakers a:hover {
    color: var(--clr-lgrey);
}
<div class="speakers">
  <a href="#">
      <h3>Tessa Harmon</h3>
      Crafty Coding: Generating Knitting Patterns
  </a>
  <a href="#">
      <h3>Russ Unger</h3>
      From Muppets to Mastery: Core UX Principles from Mr. Jim Henson
  </a>
</div>

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Well then just overwrite the color of the h3 when hovering a.
See bellow.

.speakers a:hover {
color:blue; /* example purpose */
}

.speakers a {
    color: grey;
}


.speakers a:hover h3 {
  color: grey
  }
<div class="speakers">
  <a href="#">
      <h3>Tessa Harmon</h3>
      Crafty Coding: Generating Knitting Patterns
  </a>
  <a href="#">
      <h3>Russ Unger</h3>
      From Muppets to Mastery: Core UX Principles from Mr. Jim Henson
  </a>
</div>
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading