zeroality
zeroality

Reputation: 211

is there a way to make title= attribute work on Chrome?

<span title="Hover text">Hello World</span>

In Firefox, that will display a tooltip with "Hover text" but in Chrome, you get nothing. Any way to fix this with HTML/CSS or is another scripting language required?

Upvotes: 20

Views: 36527

Answers (5)

Gil
Gil

Reputation: 962

I also had an issue with "title" tooltip defined on a div not showing. In my case it wasn't a browser-specific thing, but I thought I'll post it here anyway...

I solved it by defining a higher z-index.

Upvotes: 0

leszek.hanusz
leszek.hanusz

Reputation: 5327

If you come here from Google looking for an answer about glitches in the title attribute using Chromium under linux. Then you can be interested in this bug report which is apparently fixed in latest versions

Upvotes: 1

Aiwha
Aiwha

Reputation: 39

Though this is a really old post i've seen no answer. I've had the same sort problem and for me the problem was that the element was behind another. I've moved it up using z-index and that solved it.

Upvotes: 2

gcochard
gcochard

Reputation: 11734

title="hover text" is the way chrome works. Are you sure you don't have something else (maybe a div with no content) overtop of the span text?

Upvotes: 7

Sully
Sully

Reputation: 14943

It works for me with only title.

You should use both alt="Hover text" and title="Hover text"

Upvotes: 4

Related Questions