What's the simplest way to change the title attribute font size?
Change font size of title attribute?
Asked
Active
Viewed 5,181 times
1 Answers
4
You can't : the title
attributes are displayed in an system specific and non HTML way.
To tune how they look, you'll have to build and display your own divs on mouse hovering (or use an existing "bubble" library).
On request :
Here's a minimal "bubble" library, using jQuery :
$('[data-bubble]').hover(function(e){
if (window.bubble) window.bubble.remove();
bubble = $('<div>', {
text: $(this).data('bubble'),
css: {
position:'fixed',
top:e.pageY, left:e.pageX,
background:'yellow'
}
}).appendTo(document.body);
}, function(){
window.bubble.remove();
});
Usage :
<span data-bubble="some Text">HOVER THIS</span>
I'll let you do the syling you like. If you don't use jQuery, I let you port it to vanilla-js, I think you get the idea.
Denys Séguret
- 372,613
- 87
- 782
- 758
-
Can you give me an example on how to tune my own divs (without "bubble" library) please.
– aF.
Feb 22 '13 at 15:22
-
Asked
Active
Viewed 5,181 times
1 Answers
4
You can't : the title
attributes are displayed in an system specific and non HTML way.
To tune how they look, you'll have to build and display your own divs on mouse hovering (or use an existing "bubble" library).
On request :
Here's a minimal "bubble" library, using jQuery :
$('[data-bubble]').hover(function(e){
if (window.bubble) window.bubble.remove();
bubble = $('<div>', {
text: $(this).data('bubble'),
css: {
position:'fixed',
top:e.pageY, left:e.pageX,
background:'yellow'
}
}).appendTo(document.body);
}, function(){
window.bubble.remove();
});
Usage :
<span data-bubble="some Text">HOVER THIS</span>
I'll let you do the syling you like. If you don't use jQuery, I let you port it to vanilla-js, I think you get the idea.

Denys Séguret
- 372,613
- 87
- 782
- 758
-
Can you give me an example on how to tune my own divs (without "bubble" library) please. – aF. Feb 22 '13 at 15:22
-