❌

Normal view

There are new articles available, click to refresh the page.
Yesterday β€” 7 December 2025Main stream

Web Development Tip: Disable Pointer Events on Link Images

By: Nick Heer
27 November 2025 at 04:45

Good tip from Jeff Johnson:

My business website has a number of β€œDownload on the App Store” links for my App Store apps. Here’s an example of what that looks like:

[…]

The problem is that Live Text, β€œSelect text in images to copy or take action,” is enabled by default on iOS devices (Settings β†’ General β†’ Language & Region), which can interfere with the contextual menu in Safari. Pressing down on the above link may select the text inside the image instead of selecting the link URL.

I love the Live Text feature, but it often conflicts with graphics like these. There is a good, simple, two-line CSS trick for web developers that should cover most situations. Also, if you rock a user stylesheet β€” and I think you should β€” it seems to work fine as a universal solution. Any issues I have found have been minor and not worth noting. I say give it a shot.

Update: Adding Johnson’s CSS to a user stylesheet mucks up the layout of Techmeme a little bit. You can exclude it by adding div:not(.ii) > before a:has(> img) { display: inline-block; }.

βŒ₯ Permalink

❌
❌