Solved

strange IMG's alt & title attributions

Posted on 2006-07-22
2
478 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
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Search box won't work. 22 25
Image not there 4 35
Setting Up a Responsive Form 24 42
Glyph icons in Bootstrap 3 4 16
Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now