[FX.php List] [OT] How to display special fonts in an HTML
page
Kevin Futter
kfutter at sbc.melb.catholic.edu.au
Wed Mar 22 17:24:12 MST 2006
On 23/3/06 10:54 AM, "Bob Patin" <bob at patin.com> wrote:
> Kevin,
>
> Here's the code from my test page:
>
>
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> <title>Untitled Document</title>
>
> <style type="text/css">
> <!--
> .Cheltenham {
> font-family: "Cheltenhm Bd BT";
> font-size: 40px;
> font-style: normal;
> font-weight: normal;
> }
> -->
> </style>
> </head>
>
> <body>
> <FONT COLOR=black SIZE=40 FACE="Cheltenhm Bd BT" class="Cheltenham">This
> should display in Cheltenham 40 bold </font>
> </span>
> </body>
> </html>
>
> ---------------------------------------
> Is there anything not kosher about the above CSS? I looked on the web to see
> if I could find anything amiss, but couldn't.
>
> Thanks for your input,
>
> Bob
Hi Bob,
Firstly, I¹d test the CSS and font tag versions independently, as they¹re
probably clashing at the moment. But I think your real problem is the HTML
comments surrounding the style declarations (<!-- & -->). Remove them and
try again in Safari. Also, change your text line to <span
class=²Cheltenham²>This should display in Cheltenham 40 bold</span>, so that
only the CSS declarations are at play.
Good luck!
--
Kevin Futter
Webmaster, St. Bernard's College
http://www.sbc.melb.catholic.edu.au/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060323/e034586d/attachment.html
More information about the FX.php_List
mailing list