font family css

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • philleep
    New Member
    • Mar 2007
    • 74

    #1

    font family css

    hi there

    i've created a font family for a menu bar i'm doing

    Code:
    font-family:"Tw Cen MT", "Century Gothic", Arial;
    however the fonts in question differ in size a fair bit so i need the font size to be different for each case. can i write a conditional statemnt to get the css to do this kind of like this

    Code:
    if font == TW Cen MT then font-size = 13pt, else if font == Centruary Gothinc then font-size = 14pt
    etc

    any pointers and tips?

    cheer
    philleep
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    No because css has no way of knowing what the font will be.

    Comment

    • AricC
      Recognized Expert Top Contributor
      • Oct 2006
      • 1885

      #3
      Originally posted by philleep
      hi there

      i've created a font family for a menu bar i'm doing

      Code:
      font-family:"Tw Cen MT", "Century Gothic", Arial;
      however the fonts in question differ in size a fair bit so i need the font size to be different for each case. can i write a conditional statemnt to get the css to do this kind of like this

      Code:
      if font == TW Cen MT then font-size = 13pt, else if font == Centruary Gothinc then font-size = 14pt
      etc

      any pointers and tips?

      cheer
      philleep
      I don't think the TW Cen MT is a font that is going to be recognized by browsers. I could be wrong though.

      Comment

      Working...