image, map, css: incompatible?

H

Herbert Plass

Hi,

For a mapped image I tried to set some parameters via linked stylesheet.

..zone {
width: 600px;
margin-left: auto;
}

<img class="zone" src="images/pict0387.jpg" usemap="#map" />
<map name="map" >
<area ..... />
</map>

Unfortunately this does not work: the links given in the map are inactive
(no cursor-change, no reaction). When I remove the class, the map works as
expected. Entering the parameters "conventional as width="600" ... the map
is still alive.

Hence my question:
Did I miss some information (please give me a hint) or is it not
possible to combine css and mapped images.

Thanks for helping
Herbert
 
E

Els

Herbert said:
Hi,

For a mapped image I tried to set some parameters via linked stylesheet.

.zone {
width: 600px;
margin-left: auto;
}

<img class="zone" src="images/pict0387.jpg" usemap="#map" />
<map name="map" >
<area ..... />
</map>

Unfortunately this does not work: the links given in the map are inactive
(no cursor-change, no reaction). When I remove the class, the map works as
expected. Entering the parameters "conventional as width="600" ... the map
is still alive.

Hence my question:
Did I miss some information (please give me a hint) or is it not
possible to combine css and mapped images.

Do you have a URL of the CSS version so people can examine it?
 
H

herbert.plass

mbstevens said:
This doesn't answer your question _exactly_, but I think you should
have a read here:
http://www.alistapart.com/articles/imagemap/

Thanks for the link!

I really missed something: The image and its map were designed with a
width of 900, within the html-code the width was set to 600. As a
consequence the map did not match anymore. Unfortunately both
test-areas were outside the reduced image so when I removed the style,
the image had a width of 900, the map did as expected, when I added the
style the image was reduced to 600 and ... see above.

Sorry for bothering with my problem which was simply a faulty code.

Thanks
Herbert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top