link Is there...">

Can CSS smooth out the text shown for the title attribute?

Suppose we have:

<a id="link" href="#"  title="i am the title">link</a>

Is there a way to use CSS for the uppercase "I am the title" that will be displayed when the mouse hovers by default?

+5
source share
3 answers

Not that I knew.

You can select an element by its attributes, but not select the attribute itself.

A bit of JavaScript can do this, however ...

var elem = document.getElementById('link');

elem.title = elem.title.toUpperCase();

jsFiddle .

+6
source

No names, such as tooltips, are browser dependent; CSS cannot change them.

, , , , CSS: Title ?

+1

I have a solution if you are using jQuery.

Here's a live demo - http://jsfiddle.net/WzYkQ/

0
source

All Articles