Line break in title tag
Can I add a line break in a title, as called for below, after "HERE?"
<img src="..test.jpg" "title="I want a line break HERE THIS should be on the lower line."/>
Thanks. - Jim
No you cannot.
If you want formatting, you will need to use a tool tip of some sort. qTip is a nice relatively simple tool that I have used for this sort of thing.
Hi there jimRedfield,
yes you certainly can.
Try it like this...
The code has been tested in IE9, Firefox 13, Opera 11.62 and Safari 5.1.7.
title="I want a line break HERE&#13;THIS should be on the lower line."
Thanks for the code!
napOleon - No harm, no foul re the wrong answer. ...I, of course, never make mistakes like that. :-)
coothead - Thanks for the code - works like a charm.
Do either of you know if additional formatting can be done to title tags? Things like a better spec for the box background color, corners, lines, etc.?
Again, help appreciated. No need to respond if there's nothing to add. - Jim
Hi there jimRedfield,
To the best of my knowledge, no.
...Do either of you know if additional formatting can be done to title tags?...
As our friend nap0leon suggested, CSS tooltips would be the method to use.
Thanks again, again. Just what I needed to be pointed at. - Jim
It is not working with me in Firefox 16 and Chrome 23. Any clue?
Originally Posted by coothead
Hi there adamdani,
and a warm to these forums.
Please read post #11 for an explanation as to why.
...It is not working with me...
Please correct me
I have used the code:
But, this is the happen
title="I want a line break HERE
THIS should be on the lower line."
I would go about it differently:
<h1>THIS IS THE FIRST LINE<br />
THIS IS THE SECOND LINE</h1>
A great place to learn is www.w3schools.com
Wow - wonder when support for this started... It was a few years ago when I tried to do this and instead went with qTip.
Learn new stuff every day!
Tested this in IE, Chrome, Safari, Firefox (latest versions 2012-11-27):
& #13; (Without space between & and #)
Works in all of them...
Last edited by MortenManden; 11-27-2012 at 08:43 AM.
Interesting. Wonder if you can break down &#13; or explain what it stands for? Looks like a special character &____; code inside another ?
Hi there auntnini,
when I made that post on the 18th June the code was...
...which is what MortenManden also suggested today.
Since my post, the forums have gone through an upgrade and I can only assume that is the cause of #13;
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread