veralee Posted February 11, 2007 Share Posted February 11, 2007 What do you folks think is the best way to specify font size, px or pt or em or ex or ....? Link to comment Share on other sites More sharing options...
Xtazy Posted February 11, 2007 Share Posted February 11, 2007 px...or % Link to comment Share on other sites More sharing options...
veralee Posted February 11, 2007 Author Share Posted February 11, 2007 px...or % Thanks. Does x-small, large, etc count as %? I mean, is that some kind of abbreviated percent or do I need to actually use a number and the % sign? Link to comment Share on other sites More sharing options...
Xtazy Posted February 11, 2007 Share Posted February 11, 2007 p {font-size: 100%}p {font-size: 200%}p {font-size: 300%} etc. Link to comment Share on other sites More sharing options...
real_illusions Posted February 11, 2007 Share Posted February 11, 2007 whichever you choose, stick with it, dont change between several. It'll be easier to edit if you stick with one kinda size measurement thingy, so, everything is in relation to everything else you do on the site. Link to comment Share on other sites More sharing options...
miles5150 Posted February 11, 2007 Share Posted February 11, 2007 Thanks. Does x-small, large, etc count as %? I mean, is that some kind of abbreviated percent or do I need to actually use a number and the % sign?Hi there,It is best to use relative font sizing so avoid pixels unless you want your fonts to stay the same size regardless of user preference. I would recommend em's as a good relative size. em's basically means that you are specifying the font size compared to the capital M of your chosen font. 1.5 em meaning that you want your font size 50% larger than the standard capital M.you can also use ex's if you prefer, this means that you are sizing your text compared with a lower case "x" from your chosen font-family.Pixel size is supposed to be absolute, which means that if a user wanted to increase fontsizes using the browser then your text would not change. This is bad from an accessability point of view as a person browsing your site should be able to change the default text size if they wish to.However, these days Firefox and Netscape still change your px test sizes, much to my annoyance.The choice I guess, is yours!JustinMaster CIW Designer Link to comment Share on other sites More sharing options...
miles5150 Posted February 11, 2007 Share Posted February 11, 2007 Hi!Sorry, forgot to say that %age is good also as this is relative sizing. If you prefer that format then use it. Whatever is easier for you.Best wishesJustinMaster CIW Designer Link to comment Share on other sites More sharing options...
Rantzien Posted February 13, 2007 Share Posted February 13, 2007 This explains what I recommend: http://www.e.govt.nz/standards/web-guideli...r3.html#WAI_3_4I once read an article that explained more in-depth why, but I can't find it now. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now