Why don't you just use CSS and wrap a div tag around it? With the CSS you could create a border and there are many different types (dotted line, solid line, etc).
Thread: border around image map area |
hi
how to draw some border around area in image map?
or how to highlight it in any possible way?
thanks
Why don't you just use CSS and wrap a div tag around it? With the CSS you could create a border and there are many different types (dotted line, solid line, etc).
CSS is prohibited - I can use just HTML
oh. Paste your HTML code please and I will help.
thanks a lot:
it is my school assignment, so some things are strange (like resizing of the image)Code:<html> <body bgcolor="868686"> <div align="center"><img alt="java Duke" usemap="#map" width="300" height="300" src="image.jpg"/></div> <map name="map"> <area shape="rect" coords="81,107,181,155" href="imgRed.html" > <area shape="circle" coords="247,61,25" href="imgBlack.html" > <area shape="poly" coords="49,283,79,159,142,166,190,140,190,126,203,135,259,211,266,274,257,288,210,261,154,247,102,262" href="imgWhite.html"> </map> </body> </html>
here is the image:
Ok, in your img tag just add a border="xx" where xx is the size. For example:
That should do what you are looking for.HTML Code:<html> <body bgcolor="868686"> <div align="center"><img alt="java Duke" usemap="#map" width="300" height="300" src="image.jpg" border="1"/></div> <map name="map"> <area shape="rect" coords="81,107,181,155" href="imgRed.html" > <area shape="circle" coords="247,61,25" href="imgBlack.html" > <area shape="poly" coords="49,283,79,159,142,166,190,140,190,126,203,135,259,211,266,274,257,288,210,261,154,247,102,262" href="imgWhite.html"> </map> </body> </html>
yes, I found this solution on the internet, but it doesn't work to me - it makes border around the whole image - not just around areas
Oh, I see. I don't know if that is possible. What version of HTML?
4.01 - the newest one
and i must use only internet explorer :sneaky2:
I know of no way. I'll send morefood in here, he may have an answer for you!
There are currently 1 users browsing this thread. (0 members and 1 guests)