Solved

strange IMG's alt & title attributions

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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
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…

740 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