/    Sign up×
Community /Pin to ProfileBookmark

image map position with div

Where does the image map tags go? With regards to using it with <div> does it go in <div> or after or does it matter? I was told it should go after the <div> Is this true and why?

My layout is thrown off when I create this in Dreamweaver.

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@ray326Jul 16.2007 — It shouldn't matter because they shouldn't be rendered.
Copy linkTweet thisAlerts:
@macthewebJul 17.2007 — absolutely positioned divs can actually replace old fashioned image maps. Give them a z-index greater than the background. Use left and top to put the divs in the right place add a height and width to cover the hot spot. For your link, define the a element to display: block; and give it the same height and width as the containing div. Place that all over your image. There's your CSS image map.
Copy linkTweet thisAlerts:
@CentauriJul 17.2007 — Actually, in most cases normally positioned, semantically meaningful unordered link lists can be used to replace image maps just as easily. Image maps themselves should be avoided, as they are not traversed by screen readers or search engine spiders.
Copy linkTweet thisAlerts:
@macthewebJul 17.2007 — So when I have a map with cities I should not use CSS overlays to connect the cities with their links? Or I have a map of a small mall I should not use CSS overlays to connect the stores to their links? You don't want me to let people click on a chorus member's face to find out her name?

Yes, image maps can be misused but a blanket statement like image maps should be avoided, especially when thy are done with fully valid CSS is a bit extreme.
Copy linkTweet thisAlerts:
@CentauriJul 18.2007 — css overlays [B]are[/B] the best way of doing it - I am saying to avoid the use of the map element. In a lot of cases such overlays can be done with semantic markup and standard positioning techniques - in some cases absolute positioning may be required.
×

Success!

Help @earth2mac spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...