Re: NN7 and @import

by "Karin Christensen" <karin(at)imagecyte.com>

 Date:  Thu, 17 Oct 2002 06:34:18 -0700
 To:  "Rob Atkinson" <robatkinson(at)nucleus.com>,
<hwg-techniques(at)mail.hwg.org>
 References:  nucleus
  todo: View Thread, Original
Rob,
Well, try it out.  NN7 will not recognize any @imort rule at all unless the
@import is the very first line of the external style sheet.  IE recognizes
it no matter where you put it.

Karin

>  >
>  > The reason I did this wrong in the first place is because I got
>  > a book:
>  > Sam's Teach Yourself CSS in 24 hours (which I guess should be a
>  > clue)
>  > On page 123 under the @ Import rule section, the author shows a
>  > style sheet with the @import on the third line down in the
> line of style rules.  I assumed that there was some reason to put
> it there under the header rules.
>  >
>  > Need to find myself a better book.
>  >
>  > Karin
>  >
>
> Actually, the book is quite correct -- I think. Not seeing the
> example myself (and not sure what "third line down" is
> referencing) the logic is right on. Browsers that understand the
> @import rule will use it, even if preceded with other CSS rules.
>
> By putting the @import rule last (of all the rules) Browsers that
> don't understand it will use a previous CSS rule and ignore the
> @import. Browsers that do understand it, will use the @import and
> ignore the preceding. So, you get the best of both worlds.
>
>
> Website Rob
> Sitemaster at
> http://www.PotentProducts.com
> ------------------------------------------
> Helping people create a Potent Web Site
>
>
>

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA