Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

strange IMG's alt & title attributions

Posted on 2006-07-22
2
Medium Priority
?
486 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 260 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 240 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
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…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…

886 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