PDA

View Full Version : Font Size



audrius'05
April 1st, 2006, 09:32 PM
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.

Jeff Wheeler
April 1st, 2006, 09:36 PM
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?

audrius'05
April 1st, 2006, 09:38 PM
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

simplistik
April 1st, 2006, 09:38 PM
only works in IE, all you'd have to do is
font-size: 10px... but again... only works in IE

Jeff Wheeler
April 1st, 2006, 09:40 PM
I considered telling you that, but decided it'd be a better world if you didn't implement that. ;)

audrius'05
April 1st, 2006, 09:40 PM
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?

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.

Jeff Wheeler
April 1st, 2006, 09:41 PM
Well, I'm also against Flash, but that's besides the point. ;)

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?

audrius'05
April 1st, 2006, 09:44 PM
Well, I'm also against Flash, but that's besides the point. ;)

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. :) well besides I don't know if I use that feature I am just saying I ve seen it before and I liked it

Jeff Wheeler
April 1st, 2006, 09:46 PM
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!

audrius'05
April 1st, 2006, 09:47 PM
only works in IE, all you'd have to do is
font-size: 10px... but again... only works in IE

where do I add this code?

Jeff Wheeler
April 1st, 2006, 09:47 PM
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;
}

:)

audrius'05
April 1st, 2006, 09:51 PM
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!

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 ,

Jeff Wheeler
April 1st, 2006, 09:54 PM
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. :)

audrius'05
April 1st, 2006, 09:56 PM
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. :)

who is the man? you're the man? :D

audrius'05
April 1st, 2006, 11:42 PM
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;
}

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

h2 {
font-size: 10px;
}

Jeff Wheeler
April 1st, 2006, 11:49 PM
Use an h2 tag…


<h2>header text</h2>

:lol: