Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


fonts for entire document

Posted on 1998-10-17
Medium Priority
Last Modified: 2013-12-03
Is there a way to delcare a font face (maybe in the body tag) so it applies to the WHOLE document....tables included. Also is there a way to do the same thing for a whole table and not just individual cells, rather than having to declare the same font over and over again.
Question by:Spo0n
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +1

Expert Comment

ID: 1838792
<font face="whatever, 2nd choice, 3rd choice"> </font>

Set the first tag right after the <body> tag. Close the tag just before the </body> tag.

Be aware that if you set a font that is not on the user's PC, they will see text in whatever their default font is (probably Times Roman).



Expert Comment

ID: 1838793
The only way to do this properly is to use CSS.
I'm not an expert on CSS, but I may be able to figure something out.
It would be something like:
body {font-face:helvetica}

I'm positive, but I think that will do it.

Also remember that Netscape 3 doesn't support this.


Expert Comment

ID: 1838794
Sorry, it's font-family not font-face...
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 28

Expert Comment

ID: 1838795
<BASE FONT="whatever">
in the head of the document

Concerning tables, CSS is the way to go, as Josh suggested, but that does not work for NS3.

If you use CGI/ASP then you can define variables at the top of your document, which makes it easy to change the whole layout of the document by changing one parameter. It is even possible to use that in an (SSI) include file, that is being included by more pages. It gives you a functionality compared to CSS, but supported by more browsers.


Author Comment

ID: 1838796
sybe actually has the closest correct answer to what I was after. Colleen, yours was good but it doesn't include tables unlike basefont. Unfortunately the basefont tag doesn't work in a huge variet of browsers but it was what I was looking for.  Sybe if you repost i'll award you the points

Author Comment

ID: 1838797
oh and jbirk.....yours was good too but i should have mentioned that i didn't want to use css. Sorry bud.
LVL 28

Accepted Solution

sybe earned 150 total points
ID: 1838798
put <BASE FONT="whatever"> in the head of the document

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question