Link to home
Start Free TrialLog in
Avatar of trekart
trekart

asked on

CSS Fonts not working in Netscape

I am trying to use CSS to create documents for both Internet Explorer 4 and Netscape Navigator 4.

However I have been stumped by something as simple as fonts. Everything I have tried works FINE in IE4 as the documentation says it should. Netscrape simply FAILS to display any other font besides the default times-roman.

Please tell me how to get Netscape to recognise the CSS fonts!

Thanks.

Here is my CSS definition that works with IE4 but is not working with Netscape 4:

.text {color:000F2A; font-family:'Futura Book BT', Verdana, Arial, Helvetica, sans-serif; font-size: 10pt}
Avatar of Trevor013097
Trevor013097

terkart,

As far as I am aware Netscape does not support CSS fonts as yet.

Trevor.

Works fine for me in either browser, can you offer a link to the page ?

Netscape 4+ does support css fonts and most other css1 with a few poblamatic issues
All,

Sorry what was I talking about???

Sometimes I am half asleep. Of course Netscape supports CSS fonts, its one of the main points of CSS.

I was getting myself all confused with CSS fonts within a FORM field which Netscape does not support at present.  Sorry for the bad information.

Trevor.

i have noticed that failing as well... What I do is also use the <FONT FACE=""> tag as well as the CSS stuff... Maybe one day NS will be able to catch up with IE in supporting the industry standards...

Try using my suggestion above.
Avatar of trekart

ASKER

Sometimes Netscrape *does* take notice of CSS fonts, however only when it feels like it.

I have two sections of text in different parts of a document surrounded by a <span> tag. They both include a class="name" property however only one span element text is rendered with the correct font in Netscrape whereas IE4 renders both sections correctly, as you'd expect.

Is Netscrape, currently the worlds most 'popular' browser as crap as this???

Rather than the SPAN tag, try using the A tag around all your text... ie <A CLASS=ClassID>your text here</A>  Sometimes the SPAN tag is not recognized by that "most popular browser".
Avatar of trekart

ASKER

MasseyM,

If doing that solves the font problem (I havn't tried it yet) that would then surely cause all my body text to become an anchor and cause it to be underlined and clickable.

Can this be prevented, and can you embed (the real!) anchor tags within anchor tags?
Hi Trekart,

first of all Netscape has this nice button in the 'advanced' preferences that can turn on and off Style Sheets. Second, Style Sheets will only work in Netscape if your JavaScript is activated. Try to turn on JavaScript (if off) and be sure that the Style Sheets are on. If it works and this is what you were looking for I'll repost it as an answer.

/dedsi
Is the section that does not use the font a table ? A url or the full page would stop this from being a guessing game.
A couple of urls that may be of help to all dealing with css and netscape.

http://www.mozilla.org/layout/css/top10.html
http://css.nu/pointers/bugs.html
Avatar of trekart

ASKER

Everything is enabled as it should be, I think Netscape is just bugged as hell.

Sorry guys!
No, surrounding the text with the <A> tag will not make it a hyperlink.  it only becomes a hyperline if you add the HREF to it... What you need to do is find a tag that is commonly used in both IE & NS that can be used.  A is the most common.  HREF will make it a hyperlink.

Yes, you can use other A HREF's within the <A></A> tags
ASKER CERTIFIED SOLUTION
Avatar of MasseyM
MasseyM

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>text needs to be a subitem of body...

no it does not.
Avatar of trekart

ASKER

Sorry Massey,

Did not see the full suggestion, server timed-out while viewing page.

Have now givven you your points!