Saturday, April 08, 2006

How specify a font? here is another free tips!

Thanks to tips tricks.com

How do I specify a font face?

Assigning font typefaces is now very popular. You can easily add the FACE attribute into the tag as shown below.

< FONT FACE="Helvetica, Times New Roman, Arial>

Add this line before your text. You can have several fonts specified; the browser will try each font in the order listed until it finds one on your machine.

This is an Internet Explorer extension, but it was supported on version 3.0 of Explorer and Navigator. Font Face will not work if users are viewing your web pages by using fonts created in another language. For example, if I'm reading an English web page on Netscape using Thai Font, which can display both English and Thai languages, I will not be able to see the specified font on that page because FONT FACE cannot control FONT on a machine that is running a different language setting. If you're sure that most people visiting your page will set their HTML encoding preference to Western style, you can set FONT FACE as Arial, Times New Roman, or whatever you choose. This gives you some control over page layout.

There is another, more complicated way to get more control over fonts and page composition. It's Style Sheets
Column-Style Look

You can make columns with table or using a Netscape 3.0 Extension to create a column-style look.

Here is how to create it:

Put your text inside and tags.

It will looks like this text text text

COLS=n determines the number of columns.

GUTTER=n determines the numbers in pixels of the space between columns. If you don't specify, the default value of 10 will active.

WIDTH=n determines the numbers in pixels. If you don't specify, the columns will span to fit on the viewer's screen. The number 600 will be safe for people who are viewing with 640x480 screen resolutions. [Why does it matter?]

If you're viewing this page using Netscape 3.0 or higher, you will see this page in a two column layout. However, people who are using Internet Explorer will no doubt not see that; Explorer currently doesn't support this tag.

1 comment:

Anonymous said...

Hey Congratulation for your blog! Well done! I'm waiting for new tricks & tips.
Bye Tom