?
Solved

set default font for a page -easy

Posted on 2004-04-18
8
Medium Priority
?
1,952 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
[X]
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
  • 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 400 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
WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

 
LVL 53

Accepted Solution

by:
Ryan Chong earned 600 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 53

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

Video: Liquid Web Managed WordPress Comparisons

If you run run a WordPress, you understand the potential headaches you may face when updating your plugins and themes. Do you choose to update on the fly and risk taking down your site; or do you set up a staging, keep it in sync with your live site and use that to test updates?

Question has a verified solution.

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
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…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

762 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