0

I'm trying to change the pop-up of an element using CSS, yet it doesn't work.

name {
  background-color: #00BBFF;
  color: white;
}
<button title="name">Test</button>
Senpai Saitama
  • 313
  • 1
  • 4
  • 15

2 Answers2

1

Looks like you want to use the attribute selector https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors

button[title="name"] {
  background-color: #00BBFF;
  color: white;
}
<button title="name">Test</button>
Michael Coker
  • 52,626
  • 5
  • 64
  • 64
0

Unfortunately, the tooltip style cannot be changed in any browser.

I'd suggest you implementing your own with CSS (add a hidden span or some other element with the tooltip and show it on button:hover) or JS (nicer as you could set a delay before is shown).

Gabriel
  • 2,170
  • 1
  • 17
  • 20