You are here: Re: Image maps within <table> « HTML « IT news, forums, messages
Re: Image maps within <table>

Posted by Andy Dingley on 04/23/07 09:47

On 23 Apr, 05:44, helpneeded <yousuf.kh...@gmail.com> wrote:

> I know how to create image maps using the <img> tag.

As I'm sure you know, this involves defining a map and linking it with
the usemap attribute placed on the <img> element. This attribute is
available for <img>, <object> and <input> but not <table>.

The reasoning behind this (AFAIK) is that client-side maps are
strongly pixel-based, and so it's only appropriate and reliable to use
them with elements that also have a robust scaling onto pixel-sizes.
<img> is OK for this, <table> isn't (it depends too much on the
effects of text size) and so doesn't support usemap.

> I want to use image maps for image inside <table> tag..

Whenever someone asks "How do I <foo>?" the obvious question (as
usually posted by Jukka) is, "<foo> is crazy. You don't need to do
<foo>. What is the real requirement <bar> that you _must_ do, and
you've already assumed falsely implies that you should solve by using
<foo>?"

So what's your _real_ need here ? Maybe there's a better and simpler
route that avoids the whole issue?

You can of course place multiple <img> in a <table> and give each one
a <map>. Slightly long-winded to code, but entirely plausible.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация