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

Posted by Nikita the Spider on 10/10/06 20:04

In article <452bb74f$0$5108$afc38c87@news.optusnet.com.au>,
"The Doctor" <x203@optusnet.com.au> wrote:

> I'm very new to HTML & I'm struggling a bit with styles.
>
> <html>
> <head>
> <title></title>
> <STYLE TYPE="text/css">
> <!--
> H2
> {
> color:blue;
> font-family:arial;
> font-size:20pt;
> }
> -->
> </STYLE>
>
> </head>
> <body>
> <h2>Education</h2>
> </body>
> </html>
>
> My understanding of that code is that it will show the word
> "Education" in Arial regular, blue, 20 pt.
> Instead I get the word "Education" in Arial Bold. How do I
> turn the Bold option off?

Els has already answered your question, 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%;
}

--
Philip
http://NikitaTheSpider.com/
Whole-site HTML validation, link checking and more

 

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

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