The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> font list, want last font to be italic
deleyd
post Oct 11 2007, 01:37 AM
Post #1





Group: Members
Posts: 2
Joined: 16-September 07
Member No.: 3,824



How do I specify, I have a list of fonts, the first few fonts are normal, but if the user has none of them, I want the last font to be italic?

<span style="font-family: &Quot;Courier New&Quot;,&Quot;Times New Roman&Quot;;">some text</span>

So in this contrived bad example, if the user has Courier New, use that, else use Times New Roman.

But what if I want Courier New to be normal, and if the user doesn't have Courier New, then I want to use Times New Roman Italic? I tried just specifying "Times New Roman Italic", but the computer just thought I was an idiot and denied my request for italics.

So far I only know to use <I>...</I> to get italic always. Haven't figured out how to throw in a font-style for the last font only.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th April 2024 - 12:44 PM