Jump to content

<area> help


treeleaf20

Recommended Posts

All,

I have an the following code:

 

<img src="rascal.jpg" width="600" height="800" border="0" usemap="#Map" />

<map name="Map" id="Map"><area shape="rect" coords="191,484,406,670" href="#" class="map"/></map>

 

I want to add a style to the area for on hover etc. So I did this:

</script>

<style type="text/css">

map{

border: 0px solid #000000;

}

map:hover{

border: 10px solid #000000;

}

</style>

 

It shows below the image, why wouldn't it show it as the area?

Link to comment
https://forums.phpfreaks.com/topic/179191-help/
Share on other sites

seems like you can't set the border property for <area>..  :-\

 

just a wild jab: you could try setting the attribute border=1 for your area tag

 

<area border="1"...

 

then set area visibility to hidden and use javascript to achieve the rollover effect.

Link to comment
https://forums.phpfreaks.com/topic/179191-help/#findComment-946107
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.