Solved

set default font for a page -easy

Posted on 2004-04-18
8
1,938 Views
Last Modified: 2013-12-03

What is an easy way to set the default font for a page, with and without styles?

0
Comment
Question by:brokeMyLegBiking
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 36

Expert Comment

by:Zyloch
ID: 10856656
I don't really know if there is a way. My suggestion though, is that either you tell your visitors to set their default browser fonts, or to include everything on your webpage in a <font face="yourfont"></font> tag.

--Zyloch
0
 
LVL 3

Assisted Solution

by:azcn2503
azcn2503 earned 100 total points
ID: 10857042
Put this in between <head> and </head>:

<basefont font="Your font" size="Your size" color="Your color"></basefont>

That's what I used to use.
0
 
LVL 36

Expert Comment

by:Zyloch
ID: 10857058
Hmm... azcn, interersting. I knew of basefont but didn't know that you could use font with it. Well, guess I learned something new :)
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 50

Accepted Solution

by:
Ryan Chong earned 150 total points
ID: 10857267
I think the better way is try to apply your pages with Cascading Style Sheet (CSS), where you can create more interactive web pages with ease.

to attach a CSS file into web pages, you can add line like:

<LINK rel="stylesheet" href="css/mystyle.css">

Sample of css:

mystyle.css:

BODY { background:#FFFFFF ; font-family:"Arial, Helvetica, sans-serif" ; font-size:"12" }
H1 {FONT face:"Arial, Helvetica, sans-serif" ; size:2 ; color:#FFFFFF }
TD {font-family:"Arial, Helvetica, sans-serif" ; font-size:"12"}
SELECT {font-family:"Arial, Helvetica, sans-serif" ; font-size:"12"}
.BLUE {color:#01269E}
.GREEN {color:#088C00}
.RED {color:#FF0000}
.small {font-family:"Arial, Helvetica, sans-serif" ; font-size:"10"}
.asterisk {font-family:"Times New Roman", Times, serif; font-size:12pt; color:#01269E}

li { font-family:"Arial, Helvetica, sans-serif"; font-size:"12"}
.field1 {
      font-family: Arial, Helvetica, sans-serif;
      font-size: 8pt;
      font-weight: bold;
      color: #696969;
}
.star {
      font-family: Arial, Helvetica, sans-serif;
      font-size: 10pt;
      font-weight: bold;
      color: #FF3300;
}
.value {

      font-family: Arial, Helvetica, sans-serif;
      font-size: 8pt;
      font-weight: normal;
      color: #000000;
}
input {
      font-family: Arial, Helvetica, sans-serif;
      font-size: 8pt;
      color: #000000;
}
.footnote {
      font-family: Arial, Helvetica, sans-serif;
      font-size: 7pt;
      font-weight: normal;
      color: #696969;
}
.field1RG {

      font-family: Arial, Helvetica, sans-serif;
      font-size: 8pt;
      font-weight: normal;
      color: #696969;
}
option {
      font-family: Arial, Helvetica, sans-serif;
      font-size: 8pt;
      color: #000000;
}
.valueIT {
      font-family: Arial, Helvetica, sans-serif;
      font-size: 8pt;
      font-weight: normal;
      color: #000000;
      font-style: italic;

}
.b1 {
      cursor: hand;
}
.msg {
      font-family: Arial, Helvetica, sans-serif;
      font-size: 11px;
      text-decoration: blink;
      font-style: normal;
      font-weight: bolder;
      font-variant: normal;
      text-transform: none;
      color: #FF0000;
      filter: RevealTrans(Duration=10, Transition=5);

}

Hope this helps
0
 
LVL 36

Expert Comment

by:Zyloch
ID: 10857402
A better way is with styles, but brokeMyLegBiking wanted no styles, so I guess he must have a good reason hmm...

--Zyloch
0
 
LVL 50

Expert Comment

by:Ryan Chong
ID: 10857481
ya, thanks for remain that, Zyloch ;-) but personally think using css got his advantages, simple, that's when you need to change the font again for many pages, you just need to change 1 file, the css file only, no need go to each page to edit it.

And again, I also guess he must have a good reason ..
0
 
LVL 3

Expert Comment

by:azcn2503
ID: 10858360
I'd always use CSS these days, so much more versatile and dynamic.
0
 
LVL 4

Author Comment

by:brokeMyLegBiking
ID: 10858698
asked for both, thanks guys. just what I was looking for.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Media Queries  not Firing 6 17
Html input text color the frame line 2 20
Button on Table, name table1 not working 4 21
CSS Style Effect 2 7
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Find out what you should include to make the best professional email signature for your organization.
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…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

856 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