CSS if Zoom in / Scale above 100%

Is it possible to have a media query based on the zoom / scale level.

i.e. If a user zooms in on an iPhone I would like to make css adjustments on a class.

Is this possible?
petewinterAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

COBOLdinosaurCommented:
The basic solution is to use em instead of pixels for the unit of measure in the media queries.  However webkit browsers like Chrome and Safari, have at least one bug that makes them unreliable when zoomed.  There may be a solution using SASS, but I don't use SASS, so I have never experiment with it to see if it is a solution, or new problems to solve.

Cd&
0
petewinterAuthor Commented:
Thanks for the reply. Can you please show me an media query example using em? Can it be something like... If greater than 100%...
0
COBOLdinosaurCommented:
This page: http://foundation.zurb.com/docs/media-queries.html

Has a group of examples along with comments indicating the pixel equivalents.

The em unit is the value of the height of the font in use, so when the page is zoomed the height of the font and thus the value of the em changes so a page can respond to the zoom.

Cd&
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
petewinterAuthor Commented:
Thanks for the help
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.