<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/esoteric-html---ismap-vs-css-p5olz1vsg" -->

---
title: Esoteric HTML - ismap vs CSS | daily.dev
description: A deep dive into the obscure HTML ismap attribute, used to create server-side image maps by sending click coordinates as query parameters. The coordinates...
canonical: https://daily.dev/posts/esoteric-html---ismap-vs-css-p5olz1vsg
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Esoteric HTML - ismap vs CSS | daily.dev
og:description: A deep dive into the obscure HTML ismap attribute, used to create server-side image maps by sending click coordinates as query parameters. The coordinates...
og:url: https://daily.dev/posts/esoteric-html---ismap-vs-css-p5olz1vsg
og:image: https://api.daily.dev/og/posts/P5oLz1vSG.png
og:image:alt: Esoteric HTML - ismap vs CSS
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Esoteric HTML - ismap vs CSS

**[Terence Eden](https://daily.dev/sources/shkspr)** · 4 min read · 25 upvotes · 1 comments

## Summary

A deep dive into the obscure HTML ismap attribute, used to create server-side image maps by sending click coordinates as query parameters. The coordinates reported are based on the image's CSS-rendered layout size rather than its natural pixel dimensions, meaning any CSS resizing, stretching, or user-supplied stylesheet can throw off the coordinates entirely, making the feature unreliable and effectively unusable in modern web development.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://shkspr.mobi/blog/2026/09/esoteric-html-ismap-vs-css>

## Questions this post answers

### Are the X and Y coordinates from an HTML img ismap attribute based on the image's natural pixel size?

No, the coordinates are based on the CSS pixel size of the image as rendered on screen, not its natural dimensions or its declared width and height attributes. The HTML specification states the distance is measured in CSS pixels from the edge of the image as displayed, so any stylesheet that resizes, stretches, or skews the image changes the reported click position, making server-side coordinate logic unreliable.

_For anyone weighing legacy HTML quirks like this, daily.dev surfaces practical write-ups on browser and CSS behavior worth knowing._

## Community discussion

Top comments from developers on daily.dev.

**@tekagami** · 2 upvotes

> 6 years ago I had a client that needed/wanted an image map on their frontpage to make different sections of their graphic artist's design clickable. Making it responsive to JS. Once achieved it was a breeze but just the initial thinking of the thing was crazy.

## Similar posts on daily.dev

- [What’s \!important \#10: HTML-in-Canvas, Hex Maps, E-ink Optimization, and More](https://daily.dev/posts/what-s-important-10-html-in-canvas-hex-maps-e-ink-optimization-and-more-5xbwkf1uz) · CSS-Tricks · 5 upvotes · 1 comments
- [Fun never gets old - Oredev 2026](https://daily.dev/posts/fun-never-gets-old---oredev-2026-u4d3ou4ko) · Patrick Brosset · 1 upvotes · 0 comments
- [Why width and height Still Matter for HTML Images](https://daily.dev/posts/why-width-and-height-still-matter-for-html-images-gfwjovmpc) · JS Dev Space · 14 upvotes · 2 comments
- [CSS: The bomb inside your inbox](https://daily.dev/posts/css-the-bomb-inside-your-inbox-qdzucfppp) · Hacker News · 0 upvotes · 0 comments
- [HTML Injection to Data Exfiltration: Weaponizing CSS](https://daily.dev/posts/html-injection-to-data-exfiltration-weaponizing-css-i8mkojwcc) · InfoSec Write-ups · 5 upvotes · 0 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#css](https://daily.dev/tags/css), [#html](https://daily.dev/tags/html)

[View this post on daily.dev](https://daily.dev/posts/esoteric-html---ismap-vs-css-p5olz1vsg)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Esoteric HTML - ismap vs CSS","url":"https://daily.dev/posts/esoteric-html---ismap-vs-css-p5olz1vsg","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/esoteric-html---ismap-vs-css-p5olz1vsg"},"datePublished":"2026-09-14T11:37:48.572Z","dateModified":"2026-09-14T11:38:06.236Z","description":"A deep dive into the obscure HTML ismap attribute, used to create server-side image maps by sending click coordinates as query parameters. The coordinates...","image":"https://media.daily.dev/image/upload/s--P4t4XyoV--/f_auto/v1722860399/public/Placeholder%2001","thumbnailUrl":"https://media.daily.dev/image/upload/s--P4t4XyoV--/f_auto/v1722860399/public/Placeholder%2001","isAccessibleForFree":true,"articleSection":"Terence Eden","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Terence Eden","logo":"https://media.daily.dev/image/upload/s--nhylgPuf--/f_auto,q_auto/v1774964413/logos/shkspr?_a=BAMAMiWQ0","url":"https://daily.dev/sources/shkspr"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/esoteric-html---ismap-vs-css-p5olz1vsg","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":25},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"webdev,css,html","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Terence Eden","item":"https://daily.dev/sources/shkspr"},{"@type":"ListItem","position":3,"name":"Esoteric HTML - ismap vs CSS"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/esoteric-html---ismap-vs-css-p5olz1vsg","comment":[{"@type":"Comment","text":"6 years ago I had a client that needed/wanted an image map on their frontpage to make different sections of their graphic artist’s design clickable. Making it responsive to JS. Once achieved it was a breeze but just the initial thinking of the thing was crazy.","datePublished":"2026-09-14T15:11:20.241Z","url":"https://daily.dev/posts/P5oLz1vSG#c-47b7ma3um","author":{"@type":"Person","name":"Rodrigo Díaz","url":"https://daily.dev/tekagami","image":"https://media.daily.dev/image/upload/s--tpYZWs94--/f_auto/v1780355731/avatars/avatar_BB4KZj3otzIYetNHFC9gw?_a=BAMAMiWQ0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/esoteric-html---ismap-vs-css-p5olz1vsg#faq","mainEntity":[{"@type":"Question","name":"Are the X and Y coordinates from an HTML img ismap attribute based on the image's natural pixel size?","acceptedAnswer":{"@type":"Answer","text":"No, the coordinates are based on the CSS pixel size of the image as rendered on screen, not its natural dimensions or its declared width and height attributes. The HTML specification states the distance is measured in CSS pixels from the edge of the image as displayed, so any stylesheet that resizes, stretches, or skews the image changes the reported click position, making server-side coordinate logic unreliable. For anyone weighing legacy HTML quirks like this, daily.dev surfaces practical write-ups on browser and CSS behavior worth knowing."}}]}
```

