Link to home
Start Free TrialLog in
Avatar of pandian
pandian

asked on

controlling font size

I am creating web pages. I use arial font size 10 and arial narrow font size 18. My display properties settings font size is small fonts. Now i can view the page properly. But if i change the display properites settings font size to large font, it does not display
what i exactly want the font size on the page (it display big size and trancates the sentance to the second line. So what I want is how to solve this problem.
ASKER CERTIFIED SOLUTION
Avatar of MorFF
MorFF

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tucan1
tucan1

<CENTER><font size =5<P> NEW....HAMFEST 1999 </CENTER></font></P>


try this you can change the 5 to what ever but it will take longer to load but i dont worry about that much
go visit my web page and see if it gives you any ideas...to veiw my html just right click in a blank space and select veiw sorce.

http://www.geocities.com/Heartland/Flats/7292/

have you tried using style sheets to force the font to a specific point or pixel size?

One warning -- if you're new to CSS, Netscape and IE do not always process them the same way, so a little creative juggling is sometimes necessary to get your page to look the same in all browsers.

Let me know if you'd like me to post some code to show you how to do this.

-jello
Avatar of pandian

ASKER

yes, please jello.
thank you.
Here's the code we talked about.....

<HTML>
<HEAD>

<STYLE TYPE="text/css">
 <!--
  .general  {
       font-size : 10px;
      font-family : Arial;
 }
..header  {
       font-size : 18px;
      font-family : Arial Narrow;
 }
 -->
 </STYLE>
</HEAD>

<BODY>

<DIV CLASS="header">blah blah blah</DIV>
<DIV CLASS="general">blah blah blah</DIV>
</BODY>
</HTML>

----------------------------------------

It's pretty self-explanatory.  There are 2 style groups - header and general.  (You can name them anything nyou want.)  each style is invoked by calling the class in a DIV tag.  In addition to size and font family, you can control margins, borders, style (italic and oblique), weight (bold, light, etc...), alignment, colors, and more.  There are many good CSS resources online that will give you a complete rundown.

I mentioned IE vs. Netscape earlier.  They differ in where they start their margins, and how they interpret point size in fonts.  Ususally, the differences are subtle enough that you can find a happy medium, and no one will notice.

As for the proposed answer to your question, I would avoid making text into a graphic wherever you can.  The only exception might be if you're making a headline style banner in a decorative font that your user might not have on his machine.