By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,788 Members | 1,115 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,788 IT Pros & Developers. It's quick & easy.

font family css

P: 74
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
Share this Question
Share on Google+
2 Replies


drhowarddrfine
Expert 5K+
P: 7,435
No because css has no way of knowing what the font will be.
Mar 23 '07 #2

Expert 100+
P: 1,892
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.