Font Style Not Working...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chunk1978
    New Member
    • Jan 2007
    • 224

    Font Style Not Working...

    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:

    Code:
    ... style="font:Verdana; font-size:12px; color:#999999; text-align:justify">
    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
    Recognized Expert Specialist
    • Jan 2007
    • 4092

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

    Comment

    • chunk1978
      New Member
      • Jan 2007
      • 224

      #3
      Originally posted by KevinADC
      "font" is the shot-hand property, change it to "font-family" and see if that helps.
      worked perfectly! thanks!

      Comment

      • KevinADC
        Recognized Expert Specialist
        • Jan 2007
        • 4092

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

        Comment

        Working...