Solved

set default font for a page -easy

Posted on 2004-04-18
8
1,914 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
 
LVL 49

Accepted Solution

by:
Ryan Chong earned 150 total points
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 36

Expert Comment

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

--Zyloch
0
 
LVL 49

Expert Comment

by:Ryan Chong
Comment Utility
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
Comment Utility
I'd always use CSS these days, so much more versatile and dynamic.
0
 
LVL 4

Author Comment

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

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now