Connecting Tech Pros Worldwide Forums | Help | Site Map

Font Style Not Working...

chunk1978's Avatar
Familiar Sight
 
Join Date: Jan 2007
Posts: 226
#1: Apr 17 '07
hey... i'm trying to write some HTML without using a CSS Style list in the page head... but the font i'm writing in doesn't seem to be working as the web browser will just display the font as the default font for the browser... the color and size works though, but not the font itself... here is my code:

Expand|Select|Wrap|Line Numbers
  1. ... style="font:Verdana; font-size:12px; color:#999999; text-align:justify">
  2.  
i want it to display in verdana font, but it's displaying in Times font (default browser font)... the code begins with a "..." because the style is on lots of tags... like "<TD STYLE..." or "<TABLE STYLE..." or "<DIV STYLE..."... i think you get it...

so any ideas why the browser is ignoring my font and using the default browser font instead?

KevinADC's Avatar
Expert
 
Join Date: Jan 2007
Location: Southern California USA
Posts: 4,091
#2: Apr 17 '07

re: Font Style Not Working...


"font" is the shot-hand property, change it to "font-family" and see if that helps.
chunk1978's Avatar
Familiar Sight
 
Join Date: Jan 2007
Posts: 226
#3: Apr 17 '07

re: Font Style Not Working...


Quote:

Originally Posted by KevinADC

"font" is the shot-hand property, change it to "font-family" and see if that helps.

worked perfectly! thanks!
KevinADC's Avatar
Expert
 
Join Date: Jan 2007
Location: Southern California USA
Posts: 4,091
#4: Apr 17 '07

re: Font Style Not Working...


oops, I meant to say "short-hand" property, not "shot-hand".
Reply