Loading ...
Sorry, an error occurred while loading the content.

2883Re: [NH] web pages and Netscape

Expand Messages
  • Ed Brown
    Jul 19 9:31 PM
    • 0 Attachment
      You should always code for NS 4. The only thing wrong and it is not wrong,
      with NS 4 is that it demands that your coding be correct. If it is not then
      the chances are about 99% you have made mistakes in your coding. The other
      1% is IE has some coding that works only with it, and so it should probably
      not be used, only use what works with all browsers as much as possible. In
      IE 6 the positions are somewhat reversed, I have found it demands more
      correct coding than it ever did before and NS 6 will work even if you have
      made some little errors in your coding. Good luck and check your code if it
      does not work with NS 4.0
      Ed
      ----- Original Message -----
      From: "Ian Rastall" <idrastall@...>
      To: <ntb-html@yahoogroups.com>
      Sent: Friday, July 19, 2002 9:21 PM
      Subject: Re: [NH] web pages and Netscape


      On Sat, 20 Jul 2002 09:01:25 +1000, you wrote:

      >All the html sites said "Make sure it works in old browsers".
      >So I got one, and it didn't.
      >I have no way of knowing how many people would be using NS4.

      One important concept in the world of HTML is that web pages should
      degrade gracefully. This means that when accomodating something like
      NS4, you don't have to make everything exactly the same, as long as it
      looks pretty good, and works fine. Not having hover on NS4 is just
      fine. One thing I like to do is to remove the underline on links, by
      writing:

      a {text-decoration: none;}

      and combined with no hover, sometimes it's hard to see links. But I do
      it anyway, and I figure most net users are so used to the context of
      links that they'll have no trouble knowing which is which.

      There's a movement out there to exclude NS4 from everything. A lot of
      people now won't code for that browser at all. Some will detect the
      browser, and if NS4 is detected, the user will be forwarded to a
      screen telling them to update their browser. That's not terribly fair
      for people on slow connections, though (especially in under-developed
      nations). Some people will write the stylesheet without taking NS4
      into account at all. They'll detect the browser, and if it's NS4, it
      gets the plain version.

      I do something different. I use the @import hack. There are different
      ways of introducing a stylesheet, and one of them is to write:

      <style type="text/css">
      @import "foo.css";
      </style>

      Every browser recognizes this, *except* NS4. So if you introduce an
      external stylesheet, like so:

      <link rel="stylesheet" type="text/css" href="foo2.css" />

      you can make that the stylesheet that Netscape recognizes, and make
      your @import stylesheet the one that all the other browsers recognize.
      You put all your main CSS in the Netscape sheet, and then anything
      that needs to be overridden, you put in the other one. Because
      style-sheets cascade, anything in @import will take precedence over
      anything in <link>.

      Sorry for the long explanation. Hope this helps.

      Ian
      --
      That oughta be like hittin' fungoes
      with a corked bat. (Nathaniel Ward)

      http://www.aspipes.org/




      Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    • Show all 29 messages in this topic