tags:

views:

26

answers:

5

Let's assume i have a a tag with title attribute

<a title="some text here">;

is it possible to change the width of area, in which the title shown?

Thanks much

+2  A: 

No, the title is browser specific implementation. You will need to roll your own title implementation using divs in order to personalize its aspect.

Darin Dimitrov
ok, thanks much...
Syom
A: 

No, this is not possible.

Thariama
A: 

The only thing you may do is to add padding with white-space characters, such as

<a title="&nbsp;&nbsp;&nbsp;&nbsp;some text here&nbsp;&nbsp;&nbsp;&nbsp;">

example

Not really setting the width, but that's what you get :p Not sure about browser compatibility, but it works here on chrome.

EDIT: Actually don't have to use entities either it seems, so plain spacebar-pressing is sufficient..

Alexander Sagen
and what about new lines?
Syom
Can't help you with those I'm afraid
Alexander Sagen
A: 

No you can't, but still you got a lot of jQuery add on to do that. For example, i use tipsy

Chouchenos
A: 

Instead of relying on static title tooltip, you can implement your own tooltips.

Take a look at: 15 jQuery Plugins to Create Tooltips

medopal