Reputation: 7942
When you specify a polygon area for an image map, you just list the co-ordinates of the points. Using a similar method, is it possible to draw a polygon using html and css?
Upvotes: 1
Views: 1191
Reputation: 5413
The proposed solutions so far only work on IE9 or higher. If you need to draw vector graphics on older versions of IE, then take a look at Raphaël, which abstracts SVG and VML (Microsofts proprietary vector format) with a common JS-API.
Upvotes: 0
Reputation: 12499
You can draw polygons with the HTML5 canvas. Here's just one of many examples out there on the Web:
http://www.kozlenko.info/blog/2010/11/19/how-to-calulate-polygon-points-for-html5-canvas/
Although polygons with pure HTML and CSS are technically possible, it seems like a nasty hack to me.
Upvotes: 1