Welcome to WebmasterWorld Guest from 18.104.22.168
Forum Moderators: incrediBILL
I have a small problem. I want to display text on mouse over a link, so I use this structure:
<a href="http://www.example.com" title="Exemplary website"> - works fine</a>
However I want to put a line break inside a title to display it as:
How do I do that?
Hope to hear from you
PS. <a href="#" title="New
<a href="#" title="New<br>line">
The title attribute may be set for both A and LINK to add information about the nature of a link. This information may be spoken by a user agent, rendered as a tool tip, cause a change in cursor image, etc.
The browser supports plain text rather than html. I don't think you can add linebreak to it.
There are two approaches:
1) Use the character entity for a carriage return, which is Thus:
(For a full list of character entities, try Googling "HTML Character Codes".)
2) to do any additional styling to your "tooltips", Google "CSS tooltips"
it is not part of any standard and is not supported, for instance, by Gecko browsers on Windows
In this example it's more info about the person online:
<a href="person.html?id=212" title="More info
and even more info">Andrew Watson</a>
You see why is that?
The link is short because it's a list.
If anybody knows Andrew Watson it's not him :)
Thanks guys for the answer! To know that sth cannot be done is also information.