Font Size

does anyone know how to make in css or or any other way font size on the website that wouldn’t change even when you define size using view/text size/
in another words to make font size let’s say 11px and no matter if you use your browser to increase font size it will still remain 11px. I know this can be done I ve seen before but I don’t know how to do it.

That’s against the whole point of accessibility? What happens if your user needs a bigger font size? Then they get screwed, and they can’t view the page, because of your rule. Why would you ever, ever want to do something like that?

http://www.kirupa.com/forum/showthread.php?t=187073&highlight=font+size

actually i read a few posts before and all of them had no help but tellin gthat locking a font size is a bad idea, well I know it may be bad for some folks however I still need to know how to do it, I need to know how to to lock font to certain size.

thanks everyone

only works in IE, all you’d have to do is

font-size: 10px

… but again… only works in IE

I considered telling you that, but decided it’d be a better world if you didn’t implement that. :wink:

yeah how about flash sites, how do u increase font on flash? same thingy, but most ppl never play with font sizes I am not planning to set on a very tiny font.

Well, I’m also against Flash, but that’s besides the point. :wink:

If you’re using a small font, you have even more reason to allow increased font sizes, as your text will be hard to read for even more people.

And how do you know that few people use that?

well I don’t know for sure but I am assuming that most ppl don’t ecven know where to increase the size, I amjust telling you based on my usage, I never increase or dicrease font size. but its me. :slight_smile: well besides I don’t know if I use that feature I am just saying I ve seen it before and I liked it

Well, based on the fact that you’re on a Flash forum, I suspect you have rather good eyesight, and therefore it’s unnecessary for you to need larger fonts to see text. I wouldn’t make an assumption about world use of a feature based on my own experience.

For example, I’ve never used a machine with two 30" monitors. Does that mean nobody that could visit my site might have one? Most certainly not!

where do I add this code?

In the css for the item you want to be statically sized.

For example, if you want all h2’s to be statically sized, it’d be like this:

h2 {
    font-size: 10px;
}

:slight_smile:

you’re right nokrev,

I have a menu that is text, and background image which is a photo I just need to figure out other ways of atchieving what I need.

when I resize font size it messes up my whole site: menu buttons become ugly as hell , background photo is duplicated since its set as background image, so I am thinking maybe I have to play with css and define classes for buttons, titles, bg images etc ,

Look at this: http://alistapart.com/articles/slidingdoors

It’s sliding doors (hence the name), which support increasing and decreasing the font, despite a background image.

That’s a very common method. :slight_smile:

who is the man? you’re the man? :smiley:

Nokrev any suggestions how to define h2 in text (html )so I can set css to

h2 {
    font-size: 10px;
}

Use an h2 tag…

<h2>header text</h2>

:lol: