font list, want last font to be italic |
font list, want last font to be italic |
deleyd |
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. |
Lo-Fi Version | Time is now: 28th April 2024 - 12:44 PM |