|
abbeyvet -> RE: Finished Page Effect (6/1/2003 13:31:29)
|
Absolute Sizing The font size stays the same, it is fixed, and will not change no matter what people do with their browsers. Though some browsers, like Opera, will zoom in on it to make it bigger. Units: points (pt), pixels (px) Advantages: You can position text accurately and it will not move about according to users settings. Pixels are very well supported by browsers generally, so it will be seen as you intended it to be. Disadvantages: User control taken away - user cannot control text size. Relative Sizing The text size changes as the user alters their text size settings in their browser. Units: ems, percentages Advantages: user control retained. Makes text readable for those who need to increase text size and therefore improves readability/accessibility Disadvantages: Poor browser support for ems. Percentages can be tricky to use until you get used to them. One thing I have noted it that if you use percentages for stying paragraphs in FP you need to be very careful - say you use 90%. Sometimes FP fails to put in a closing </p> tag, so the second pargraph is displayed as 90% of the first, the third as 90% of the second and so on, until pretty quickly text is so tiny it is unreadable. When using CSS for layout there are loads of ways around this, but when using for text styling only I have found this the best way: Set a text size for body text. Say 80% - whatever size you think looks ok for your standard page text. You do not then need to specify any size for text in paragraphs, for link text, list text etc. It will take up the size set for the body. With one proviso - see below. Then set styles for headings as a bit bigger than this, say h1 -120%, h2 - 110%. remember these latter percentages will be relative to the size you set for the body. The proviso I mentioned was that sometimes, in some browsers, a size defined for body will not show up on text inside tables. To get over this just add this line to your stylesheet: table {font-size:inherit;} You can also just set the font family for the body, varying it for particualr elements later if you wish, in which case amend the above to: table {font-size:inherit;font-family:inherit;}
|
|
|
|