Firefox - Prevent TextField size change when user changes font size?

W

Wongod

I'm currently using css to design my website but I've noticed that when
I change the font size in firefox (holding ctrl and using the mouse
wheel) that the size of my textfield boxes grows bigger and outside of
its intended boundries. Is there any way to prevent this (maybe to
explcitly set the size of the textfield?)
 
L

Leif K-Brooks

Wongod said:
I'm currently using css to design my website but I've noticed that when
I change the font size in firefox (holding ctrl and using the mouse
wheel) that the size of my textfield boxes grows bigger and outside of
its intended boundries. Is there any way to prevent this (maybe to
explcitly set the size of the textfield?)

You can't do that in competent browsers (i.e. Firefox, Opera, Safari
Konqueror -- pretty much everything besides IE), nor should you be able
to. Fix your real problem instead by sizing the container in em units so
that it will scale.
 
D

Dan

Wongod said:
I'm currently using css to design my website but I've noticed that when
I change the font size in firefox (holding ctrl and using the mouse
wheel) that the size of my textfield boxes grows bigger and outside of
its intended boundries. Is there any way to prevent this (maybe to
explcitly set the size of the textfield?)

That's not a bug, it's a feature. Avoid hardcoded pixel sizes in your
pages, and then everything will be able to scale naturally along with
the user's preferences.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,534
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top