Hi,
i am trying to set the size of some text so that when the browser's text-size increases (view - textsize - increase/decrease) the text stays the same size.
the text needs to stay the same size no matter what the browser's size is. help please!I think you should design to allow precisely what you are trying to stop.
However, if you are determined to do it, font-size with a fixed size - as in
p {
font-size:10px;
}
will do it. But you would be working right against accessibility guidelines.It is always possible to change the font-size, no-matter how you code it.
Using absolute units will deter the average user from changing the font-size.
Recommended practices (<!-- m --><a class="postlink" href="http://www.w3.org/QA/Tips/font-size">http://www.w3.org/QA/Tips/font-size</a><!-- m -->)Fixed sizes only work in IE. Firefox, Opera and Netscape will still allow the size to be changed using the browser's text size or zoom feature.Well, as the majority of the public use IE, font-size in px would do it for most of hedlikeahole's viewers. That said, I personally specify in em.If you fix the font size then those people who can't read it because it is too small will have to override your entire stylesheet in order to make the text big enough for them to read.Fixed sizes only work in IE. ...Not true; the user can override any style by changing the accessibility options in IE.Not true; the user can override any style by changing the accessibility options in IE.
That's not what I meant. What I meant is that the View | Text Size adjustment that the large majority of people use will not work in IE if the designer has used fixed font sizes, but the other browsers are unaffected by the designer using fixed sizes.
Yes, a person can create their own style sheet and this will override anything the designer does.
i am trying to set the size of some text so that when the browser's text-size increases (view - textsize - increase/decrease) the text stays the same size.
the text needs to stay the same size no matter what the browser's size is. help please!I think you should design to allow precisely what you are trying to stop.
However, if you are determined to do it, font-size with a fixed size - as in
p {
font-size:10px;
}
will do it. But you would be working right against accessibility guidelines.It is always possible to change the font-size, no-matter how you code it.
Using absolute units will deter the average user from changing the font-size.
Recommended practices (<!-- m --><a class="postlink" href="http://www.w3.org/QA/Tips/font-size">http://www.w3.org/QA/Tips/font-size</a><!-- m -->)Fixed sizes only work in IE. Firefox, Opera and Netscape will still allow the size to be changed using the browser's text size or zoom feature.Well, as the majority of the public use IE, font-size in px would do it for most of hedlikeahole's viewers. That said, I personally specify in em.If you fix the font size then those people who can't read it because it is too small will have to override your entire stylesheet in order to make the text big enough for them to read.Fixed sizes only work in IE. ...Not true; the user can override any style by changing the accessibility options in IE.Not true; the user can override any style by changing the accessibility options in IE.
That's not what I meant. What I meant is that the View | Text Size adjustment that the large majority of people use will not work in IE if the designer has used fixed font sizes, but the other browsers are unaffected by the designer using fixed sizes.
Yes, a person can create their own style sheet and this will override anything the designer does.