Yisela
Yisela

Reputation: 6941

Target IE's text size with media queries or js

Is there a way to target changes selected by the user in IE's View > Text Size using media queries or similar?

So, for example, when the user changes the text size to "large" I can call something like @media (text-size: large) and apply specific styles. Could also do with any js solutions.

Upvotes: 1

Views: 114

Answers (2)

Brandon Gano
Brandon Gano

Reputation: 6710

You could use JavaScript to build an in-memory element with font-size:medium and compare its width to a control element with a known font size.

You can use this information to add a class (small, large, etc.) to which you can use in your CSS.

Upvotes: 2

user1561202
user1561202

Reputation: 145

There is no way knowing what the user set textsize is.

Upvotes: 0

Related Questions