Web Designing Made Easy

Add to Favourites Tell a Friend

 Print this Page

Make Your Home Page
 

Create Free Websites

Google
Web This Site

HTML Tutorial

JavaScript Tutorial

CSS Tutorial

PHP/ASP

CGI Tutorial

Free Web Tools

Free FTP Tool

Free websites

Free Bullets

Free Templates

Free Logos

Tutorials

Free Keywords Software

Free Web Tools

Free JavaScripts

Other Services

Quick Links

Tell a Friend

Submit a Tutorial

Links

Free Resources

Translate a webpage in your Language

Earn money with your website

Free Website Submission

Suggestions

META Tag Generator

HTML Encryptor

Check Site Popularity

Search Suggestion Tool

Menu Generator

Ads Network

Valid CSS!

HomeHome |AdvertiseAdvertise | Contact UsContact Us |Free Resources Free Resources |Submit a Tutorial Submit a Tutorial

 

The Font Properties
How to use some of the css font properties

Here are some explanations and examples of the css font properties. Some of these do not yet work in Netscape. You may want to use IE4 to view the examples on this page.

Now we have made it to the font properties. These do many of the things the <FONT> tag does for us.

font-family

Possible Values:
name of font

The font-family property defines the type of font shown on the screen. The default is whatever the <DIV style="font-family:Arial">The font for this section is Arial.</DIV>

And you would get the text with an Arial font:

The font for this section is Arial.

Before you get too crazy with it, remember that the viewer must have the font installed on their computer for this to work. So stick with the most common fonts for the most part.....

font-size

Possible Values:
number of pixels
percentage

You probably have guessed this one already, but I'll tell you anyway......The font-size property <DIV style="font-size:40px">The font is 40 pixels in size.</DIV>

And get this!

The font is 40 pixels in size.

font-style

Possible Values:
normal
italic
oblique

<DIV style="font-style:italic">The font is italic.</DIV>

And guess what you get..............?

The font is italic.

font-variant

Possible Values:
normal
small-caps

The only use I see for this one so far is that it lets you write in small caps if you want to. So, if you <DIV style="font-variant:small-caps">The font is small-caps.</DIV>

And now you have.....small caps!

The font is small-caps.

font-weight

Possible Values:
normal
bold
bolder
lighter
100
200
300
400
500
600
700
800
900

Was the list long enough for you? Yep, this lets you control how bold the font is. The only problem <DIV style="font-weight:900">The font is really bold.</DIV>

Now see how bold you can be!

The font is really bold.

Well, that's the section on the font properties, the next section is on Background and Color Properties.

PreviousNext

 

 

 

Home | Contact Us| Links| Privacy Policy