Solved

strange IMG's alt & title attributions

Posted on 2006-07-22
2
482 Views
Last Modified: 2008-03-10
Hi folks,

I encounter a weird problem. i.e: when visiting this URL http://137.82.196.81:8600/lab/location.html and moving mouse to a picture, if you use IE, you will see full text description of that picture (alt info), however, if you use Firefox (in windows or in Mac), you will only see partial info. It is really strange.

Any comment?

Thanks

0
Comment
Question by:tiger0516
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 30

Accepted Solution

by:
GrandSchtroumpf earned 65 total points
ID: 17162700
Nothing strange about that...

Each user agent can decide what to do with the title:
http://www.w3.org/TR/html401/struct/global.html#idx-title-2

Gecko (rendering engine used by firefox) chose to display it as tooltip and truncate it when it's very long.
There is nothing you can do about it except using short titles.

For images, "alt" should be used for a small description and "longdesc" should be used for a longer description.
http://www.w3.org/TR/html401/struct/objects.html#edef-IMG
"Alt" is often represented as tooltip when "title" is not defined.  Since "alt" is supposed to be short, truncating long values in the tooltip makes sense.

If the image comments are important, you should place them under your image, like what you did for the 2 first images.
0
 
LVL 3

Assisted Solution

by:gileze33
gileze33 earned 60 total points
ID: 17163127
Hi tiger0516.

You can always use a Javascript Tooltip-type method.

See this (http://www.walterzorn.com/tooltip/tooltip_e.htm) link for a good explanation and tutorial on making one.

Hope this helps :)

Gileze33.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Session on Html 8 55
Text color and background in a text box. 2 36
What kind of script/language created this graph? 6 67
Can't Find The Code 15 22
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Find out what you should include to make the best professional email signature for your organization.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question