Line break in "alt" text

liunx

Guest
Hi guys,<br />
<br />
Is there a way to force a line break in the text designated by "alt=" in the <img> tag?<!--content-->No, not that I know of. That alt text is not a tooltip by the way. I just wanted to make sure you knew that. It is there for image loading purposes (audio braille browser organization) and if your image path is wrong it is there. If you want a tool tip use the title="" property.<!--content-->Just use the OBJECT element. <br />
<br />
<object data="http://forums.webdeveloper.com/img/webdevlogoz.gif" type="image/gif"><h1>Webdeveloper.com<br>or something or another</object><br />
<br />
But if you are really interested in a tool tip then use the "title" attribute. The problem, as you know, is that HTML doesn't have a cross platform new line character. But JavaScript does...<br />
<br />
<span title="this is a tool tip" onmouseover="this.title = 'this\nis a tool tip'">span</span>.<!--content-->OK, I'm obtuse...<br />
<br />
Thanks Charles, for the suggestions, but I can't make either one work. <br />
<br />
The <object> method doesn't even show up on the page. <br />
<br />
I can't figure out how to make the <span> method work. If I use it just like you posted it, I get a nice little "span" on the page. But how do you apply it to an image? (This one is one cell of a table, if it matters)<br />
<br />
Thanks<!--content-->Scratch that!<br />
<br />
I fingered it out. Thanks again.<!--content-->
 
Back
Top