netmano
netmano

Reputation: 322

Image alternatives in case of zoom in browser

If the browser have been zoomed in the images get blured. If I put a bigger image and set width/height to the desired size the image will be better in zoom, however in 100% some get moire, so I need some of the images to be different by the zoom level of the browser.

Is there any CSS keyword for a zoom alternative stylesheet or, zoom alternative image?

Upvotes: 3

Views: 1009

Answers (1)

ahdaniels
ahdaniels

Reputation: 1060

I don't believe there is a CSS keyword that handles browser zoom. You can use JavaScript to try to detect if the user has zoomed:

See answer: https://stackoverflow.com/a/995967/1145390

Upvotes: 1

Related Questions