Font size issue (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets and Accessibility



Message


SteveWR -> Font size issue (11/25/2004 5:09:24)

Not sure if this is the right place but hey its style related

Why does this "font-size:10;" not allow the rendered font to be changed by the browser in IE and Advant but it does in Mozilla/Firefox ?

Is it just "well thats the way it is" and I have to use % ?

Thanks





Giomanach -> RE: Font size issue (11/25/2004 7:27:45)

You need to define what the 10 is; is it 10 pixels? 10 points? 10 percent etc

Try: font-size: 10px;




c1sissy -> RE: Font size issue (11/25/2004 9:50:24)

Hi SteveWR,
Here are a few links for you in regards to fonts and css
http://www.wilk4.com/webdevres/fontcss3.htm

http://www.dejeu.com/web/tools/tech/css/variablefontsizes.asp

http://4ums.com/tools/font-size_em_reference.html

http://www.gwumc.edu/library/tutorials/introxhtml/css2.cfm

http://www.romankoch.ch/capslock/cssfontmodel.htm

I hope that some of these can help you to decide which is best to use in regards to size. Oh, and as Dan stated, don't forget to add if it is a percentage, pixel, em, etc... Just putting a plain 10 won't tell the browser what to do.




caz -> RE: Font size issue (11/25/2004 9:56:52)

To offer adjustable font sizing to users you have to specify relative, not fixed font sizes in your CSS, ems or %. Even IE will co-operate then. So decide that 10(px,pt whatever equals 1 em, or 0.9em) and take it from there.

Have a look at the sticky "Links" post at the top to find more information, or you could use the Search forum function within the CSS forum.[;)]

Edit: I see that Deb beat me to it, very comprehensively.[&:]




c1sissy -> RE: Font size issue (11/25/2004 10:00:21)

Also be as familar with inheritance as possible. with fonts, this still throws me off, so find some things to read about how things inherit down your divs.




SteveWR -> RE: Font size issue (11/25/2004 11:38:27)

Thanks everyone, back on track now, i am having one of those " can't see wood for trees" periods.

Right i'm off to the graphics forum now





Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875