-2

My requirement is to apply style on the title attribute of the span tag. I tried so many ways and it did not work

<span title="Hello" class="span_style"> hello </span>

I want to change the back ground color if user hovers on the text.

if i hover on the text i will be getting some information about it (tool tip). for that tool tip i want the back ground to be changed from the default

I wrote like this

.span_style title: hover {
   background-color: rgba(81, 85, 89, 0.8);
}

It did not work.

1 Answers1

0

It will never work, what you need is boostrap tooltip or popover plugin. Very simple to install and use.

Read about Bootstrap Tooltip here https://getbootstrap.com/javascript#tooltips

Or

http://www.w3schools.com/bootstrap/bootstrap_tooltip.asp

Prince Tegaton
  • 222
  • 1
  • 4
  • 14