468,238 Members | 1,923 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,238 developers. It's quick & easy.

font family css

hi there

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

Expand|Select|Wrap|Line Numbers
  1. 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

Expand|Select|Wrap|Line Numbers
  1. 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
Mar 23 '07 #1
2 6117
drhowarddrfine
7,435 Expert 4TB
No because css has no way of knowing what the font will be.
Mar 23 '07 #2
AricC
1,892 Expert 1GB
hi there

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

Expand|Select|Wrap|Line Numbers
  1. 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

Expand|Select|Wrap|Line Numbers
  1. 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.
Mar 24 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

9 posts views Thread by Zenobia | last post: by
5 posts views Thread by lostinspace | last post: by
7 posts views Thread by Fabian Neumann | last post: by
39 posts views Thread by David Jubinville | last post: by
7 posts views Thread by Daniel Kaplan | last post: by
14 posts views Thread by Roedy Green | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.