Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting fonts 2

Status
Not open for further replies.

lfc77

Programmer
Aug 12, 2003
218
GB
I want to use a particular font in my CSS pages (Copperplate Gothic Light) to apply to my web pages, but when I set it nothing happens (I get Times New Roman):

td.datetime {font-family: CopperplateGothicLight;
font-size:10;
background-color: #000000;
color: white}


Is there anything extra I need to do to use this particular font?


Thanks,

lfc77
 
try this:
font-family: "Copperplate Gothic Light";

but you should know that if I don't have that font installed on MY machine then it won't be displayed on the page

MrBelfry
 
To use that font on your PC, or any other that has it installed, you need to specify the name precisely, including any spaces (you have to use quotes if the name includes a space):
[tt]
td.datetime {font-family: "Copperplate Gothic Light";
font-size:10;
background-color: #000000;
color: white}
[/tt]
However, if you're going to put this on a web site, you can't be sure that everyone has that font on their machine. In this case you can embed the font on your page using the method described in faq215-1525 . It only works in IE, but that should be OK for a purely decorative thing like this. You should also consider putting some other possible choices in the font-family for people that can't view your font of choice.

-- Chris Hunt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top