Browser resize, freeze navigation font size

Is there a way to "freeze" or keep the same sized text for navigation, when a user resizes or zooms the text from their browser. I have a nav bar that I want to always keep the same size.  (a css or javascript function?) Mainly concerned with resizing screwing up the look.
atgdesignAsked:
Who is Participating?
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.

xberryCommented:
it is not recommended to fix font sizes for making it possible to resize it for users
who have difficulties to read your 'standard' size of font in their browsers.

Apart from that:

it is possible to fix fontsize but for internet explorer browsers only, by using the px sizing
in your CSS, however this would not work in browsers with the mozilla engine (firefox, seamonkey, ---)
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
xberryCommented:
>> Mainly concerned with resizing screwing up the look.
It is possible to have the whole navigation bar resizing by doing all size in 'em'.
Also, you cannot, in good web development, avoid doing a testing in two or three different
browsers, increasing and decreasing the preview of your site, to see if layout holds together
or falls apart. However, I often find it difficult to have
a) the layout in any case as I want it and
b) keep users happy with any possible increment or decrement of sizes.
Most usability experts would recommend to have literally "everything" done in "em" measurements,
so that even images resize according to the resizing of the fonts. I have followed this once, actually
trying to keep everything dynamic with 'em' sizes in the CSS while doing the basic layout for 100%
exactly as the customer did want to have it. It did not work out, because increment of div containers
would have them line up vertically instead in horizontal line, thus the whole layout becoming corrupted
with increment of the site.

Depending on the layout I mostly have to compromise, basic containers in fixed size, while smaller
navigation bars and their fonts in dynamic 'em' sizing, ... or similiar solutions.
It really depends. You also have to examine your target group to see which combination of
layout and CSS is viable. In most cases it is ok if layout holds together with two steps in
increment or decrement, anything else is very unlikely with most users. Only if your
layout has to be fine for very small screens on mobiles, too, then you might have to implement
two altenative layout solutions anyway, but thats a different story.
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.