SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    One website at a time mmj's Avatar
    Join Date
    Feb 2001
    Location
    Melbourne Australia
    Posts
    6,282
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    CSS no longer working in NN4.x

    Hi everyone,

    My style sheets were working perfectly in Netscape 4.7, and now I have changed the name of my stylesheets from vn1style.css to vn1style.css.php, they no longer work in Netscape 4.7.

    The content of the two sheets are exactly the same. In addition, the content-type of both are "text/css".

    Why would just the filename make the difference?

    Does Netscape 4.x require all style sheets to have the extension ".css"?

    Here is the address of my stylesheet if you want to take a look:
    http://www.jokesplace.com/navbar/vn1style.css.php

    View the home page of that site to see an example.

    The style sheet validates as CSS 2. It validates for CSS 1 except for the "hover" attributes. However, when it was named vn1style.css, Netscape had no problem with it, with the hover attributes.

    Help!
    [mmj] My magic jigsaw
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The Bit Depth Blog Twitter Contact me
    Neon Javascript Framework Jokes Android stuff

  2. #2
    One website at a time mmj's Avatar
    Join Date
    Feb 2001
    Location
    Melbourne Australia
    Posts
    6,282
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I think I've found it ;

    When the server sends the css file gzip encoded, netscape can't handle it, even though netscape said that it could handle gzip encoded files (besides, all my files are gzip encoded).

    This is ridiculous. I'm pretty sure Netscape is sending an Accept-Encoding or whatever it is.

    I'll be back.

    --

    I'm back. Yep. I did a bit of research and found that Netscape 4.x doesn't support gzip encoded CSS files or Javascript files, even though it asks for gzip encoded CSS files and javascript files. That's the most ridiculous thing I've ever heard. I really don't want to disable gzip encoding of CSS files just because Netscape has a problem with it.

    I'll see what I can do.

    --

    Edit:

    Back again. Adding these two lines to your htaccess works.

    mod_gzip_item_exclude reqheader User-Agent:.*Mozilla.*4\.07
    mod_gzip_item_exclude reqheader User-Agent:.*Mozilla.*4\.7
    Last edited by mmj; Jul 19, 2002 at 11:05.
    [mmj] My magic jigsaw
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The Bit Depth Blog Twitter Contact me
    Neon Javascript Framework Jokes Android stuff

  3. #3
    SitePoint Wizard Aes's Avatar
    Join Date
    Jun 2001
    Location
    Oklahoma
    Posts
    3,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't even test with 4.7 any more. I have PHP code that sniffs for the browser, and displays a message at the top of the page explaining to anyone using it why the page might not appear formatted correctly. In my mind, that's better for both the web site and the clients using that web site. I mean -- Netscape is publicising it's version 7 browser; AOL's working on getting Netscape 7 incorporated into their software; everone else uses Internet Explorer. I mean.... Do you still use Windows 95? It's the same thing really. But, I don't want to hark on this overly-talked about topic, even though I did. Good luck with your encoding.

    -Colin
    Colin Anderson
    Ambition is a poor excuse for those without
    sense enough to be lazy.

  4. #4
    One website at a time mmj's Avatar
    Join Date
    Feb 2001
    Location
    Melbourne Australia
    Posts
    6,282
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I worked out that 5% of my visitors use Netscape 4.7 or below (1.5% use netscape 3 ?!?!). I wouldn't want to turn away 1 in 20 of my visitors yet...

    That's my choice. Anyway, since I worked so hard originally to get the site looking good in Netscape 4.7, I might as well continue to support netscape 4.7.
    [mmj] My magic jigsaw
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The Bit Depth Blog Twitter Contact me
    Neon Javascript Framework Jokes Android stuff

  5. #5
    SitePoint Wizard Aes's Avatar
    Join Date
    Jun 2001
    Location
    Oklahoma
    Posts
    3,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by mmj
    I worked out that 5% of my visitors use Netscape 4.7 or below (1.5% use netscape 3 ?!?!). I wouldn't want to turn away 1 in 20 of my visitors yet...

    That's my choice. Anyway, since I worked so hard originally to get the site looking good in Netscape 4.7, I might as well continue to support netscape 4.7.
    I understand that much. Point taken. You do need to do something about those Netscape 3 users though!

    -Colin
    Colin Anderson
    Ambition is a poor excuse for those without
    sense enough to be lazy.

  6. #6
    One website at a time mmj's Avatar
    Join Date
    Feb 2001
    Location
    Melbourne Australia
    Posts
    6,282
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Yeah. Sorry if I sounded gruff when I said 'That's my choice.' I didn't mean to. I meant that I've chosen to support Netscape 4 because of the nature of my site

    I don't have a technically minded audience! Netscape 3! It's actually 1.1% That's 96 of my last 8500 (approx) unique visitors are using it...

    I shudder to think what my site would look like there.
    [mmj] My magic jigsaw
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The Bit Depth Blog Twitter Contact me
    Neon Javascript Framework Jokes Android stuff

  7. #7
    SitePoint Guru bronze trophy blufive's Avatar
    Join Date
    Mar 2002
    Location
    Manchester, UK
    Posts
    853
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    have you inspected the user agent strings to be sure that those netscape 3 users really ARE netscape 3, not (a) other browsers showing mozilla 3 (compatable) or (b) search engine spiders?

  8. #8
    One website at a time mmj's Avatar
    Join Date
    Feb 2001
    Location
    Melbourne Australia
    Posts
    6,282
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Mozilla/3.01 (compatible;)

    Could be anything really.

    They could be search engine spiders.

    They could also be a netscape 3 user behind multiple (AOL?)proxy addresses.

    Whatever it is though, probably doesn't look pretty.
    [mmj] My magic jigsaw
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The Bit Depth Blog Twitter Contact me
    Neon Javascript Framework Jokes Android stuff


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •