-2

How to change "Contacte-nos" text color on :hover?

.popmake-contacte-nos {

  background-color: #fffff7;
  /* Green */
  border: none;
  color: black;
  font-weight: bold;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
}

.popmake-contacte-nos:hover {
  background-color: #3c8b96;
}
<button class="popmake-contacte-nos">Contacte-nos</button>
Heretic Monkey
  • 11,687
  • 7
  • 53
  • 122
ztplru
  • 1
  • 3
  • ehh ... simply `color` ? – Temani Afif Feb 08 '18 at 19:37
  • 3
    Possible duplicate of [Text color change on hover over button](https://stackoverflow.com/questions/12139546/text-color-change-on-hover-over-button) – Heretic Monkey Feb 08 '18 at 21:11
  • Temani, I swear i "obviously" tried, ( color: white; ) yesterday, and it didn't work! Some glitch or something. Anyway i am sorry wasting your time for such a thing. But it's working now! – ztplru Feb 08 '18 at 21:43

1 Answers1

0

Just add color to your hover selector

.popmake-contacte-nos {

  background-color: #fffff7;
  /* Green */
  border: none;
  color: black;
  font-weight: bold;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
}

.popmake-contacte-nos:hover {
  background-color: #3c8b96;
  color: white;
}
<button class="popmake-contacte-nos">Contacte-nos</button>
Gerardo BLANCO
  • 5,590
  • 1
  • 16
  • 35