Posted by jojo on 10/10/06 20:18
Nikita the Spider wrote:
>> H2
>> {
>> color:blue;
>> font-family:arial;
>> font-size:20pt;
>> }
[snip]
> I just wanted to add in that points (pt) are fine for
> printing but aren't a great measurement unit for
> screens. Try ems or percentages instead, like so:
>
> h2
> {
> color:blue;
> font-family:arial;
> font-size: 125%;
> }
>
There is still something to add: I would specify a generic font-family
in addition to the font-type (would be "sans-serif" in case of Arial).
So your CSS-class would be:
h2
{
color:blue;
font-family:arial, sans-serif;
font-size: 125%;
}
for more information about generic font families see:
http://www.w3.org/TR/REC-CSS2/fonts.html#generic-font-families
jojo
Navigation:
[Reply to this message]
|