Search code examples
csshtmlimagemap

Using Image Map within a div with CSS rules


I have created a div with a image I'm using with Image Map.

<div id="image"> 
<img src="image.png" usemap="imagemap"> 
</div>

Css:

#image {   float: right; }

But when I use the CSS with the Image Map, it doesn't work. What is the problem?


Solution

  • I solved the problem by using

    <div id="image" align="right"> 
    <img src="image.png" usemap="imagemap"> 
    </div>
    

    and dropped the CSS.