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.
Who is Participating?
xberryConnect With a Mentor Commented:
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, ---)
>> 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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.