You are here: Re: Font Styles « HTML « IT news, forums, messages
Re: Font Styles

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация