Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I stop the resizing of elements on zoom?

Tags:

html

resize

I have a standard website, and when the user zooms in (CTRL +), how can I prevent elements from resizing?

like image 974
Shamoon Avatar asked Jun 23 '11 18:06

Shamoon


People also ask

How do I stop DIVS from resizing?

It is mostly used with textarea and div elements. To disable resizable property of an element use resize to none. It is the default value.

How do I zoom the same element size?

min-width: 100%; This will freeze the width, you can do the same for height too.


1 Answers

There's no way I know of to prevent items from scaling when a user zooms in. There may be a way to catch the zoom event and size elements accordingly, but it won't work in all browsers.

And to state the obvious - people zoom in because they can't read/see it at normal zoom. Pleeeaase don't break standard behaviour. It's there for a reason.

like image 131
Tak Avatar answered Oct 19 '22 22:10

Tak