This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Site Ratings & Reviews > December 2003 > Honestly





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Honestly
Bonnie Granat

2003-12-03, 7:30 pm

You'd think my name was Murphy, or something.

I've read that to hide style sheets from NS 4, you do certain things. That's
great. But what if you need to hide NS 4 style sheet from new browsers? I
was trying to do a style sheet for NS 4, and it was horrible but better than
nothing, but IE 6 saw it and the page didn't render properly in IE 6.
It was not seeing the imported style sheet at all.

This is what I had in the HTML:

<link type="text/css" rel="stylesheet" media="screen"
href="ns4111403granat.css" />

<style type="text/css">
@import url(111403granat.css);
</style>


This is the page: http://www.granatedit.com/testresume.html.
--

Bonnie Granat
http://www.granatedit.com

rf

2003-12-03, 7:30 pm


"Bonnie Granat" <bgranat@granatedit.com> wrote in message
news:3fc9bc67@andromeda.5sc.net...
quote:

> You'd think my name was Murphy, or something.
>
> I've read that to hide style sheets from NS 4, you do certain things.


That's
quote:

> great. But what if you need to hide NS 4 style sheet from new browsers? I
> was trying to do a style sheet for NS 4, and it was horrible but better


than
quote:

> nothing, but IE 6 saw it and the page didn't render properly in IE 6.
> It was not seeing the imported style sheet at all.
>
> This is what I had in the HTML:
>
> <link type="text/css" rel="stylesheet" media="screen"
> href="ns4111403granat.css" />
>
> <style type="text/css">
> @import url(111403granat.css);
> </style>



If there is anything in the NS4 style sheet you don't want the others to see
then respecify that in the 'other' style stheet.

For example, say you want a red background in for NS but white for the
others:

In ns4.css: body {background: red}

In other.css: body {background: white}

The 'other' browsers will see both but the second specification takes
precidence.

Cheers
Richard.


Toby A Inkster

2003-12-03, 7:30 pm

Bonnie Granat wrote:
quote:

> I've read that to hide style sheets from NS 4, you do certain things. That's
> great. But what if you need to hide NS 4 style sheet from new browsers?



Either over-ride things as Richard suggests, or don't use a CSS file for
Netscape 4 -- use JSSS instead. This is a styling mechanism *only*
supported by Netscape 4.x, so other browsers will simply ignore it.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132

Bonnie Granat

2003-12-03, 7:30 pm


"rf" <making.it.up@the.time> wrote in message
news:JQjyb.33617$aT.1784@news-server.bigpond.net.au...
quote:

>
> "Bonnie Granat" <bgranat@granatedit.com> wrote in message
> news:3fc9bc67@andromeda.5sc.net...
> That's
I[QUOTE][color=darkred]
> than
>
> If there is anything in the NS4 style sheet you don't want the others to


see
quote:

> then respecify that in the 'other' style stheet.
>
> For example, say you want a red background in for NS but white for the
> others:
>
> In ns4.css: body {background: red}
>
> In other.css: body {background: white}
>
> The 'other' browsers will see both but the second specification takes
> precidence.
>
> Cheers
> Richard.
>
>



I thought that's what I did -- I just tweaked the stylesheet named
111403granat.css.
Thus, ns4111403granat.css has fewer styles, but the names are the same.
Maybe it's the jungle of <div> tags in the HTML that's throwing it off? I
have to redo the whole thing at some point because I've thrown in too many
<divs> just to achieve spacing. Could that be the problem?

It's rather a luxury to be worrying about NS 4 for me, so this is not a huge
deal. I just thought that if it were possible to make the page look better
than just default text in NS4, I might as well try it.

Thanks.


--

Bonnie Granat
http://www.granatedit.com

West

2003-12-03, 7:30 pm

"Bonnie Granat" <bgranat@granatedit.com> wrote in message
news:3fc9bc67@andromeda.5sc.net...
quote:

> You'd think my name was Murphy, or something.
>
> I've read that to hide style sheets from NS 4, you do certain things.


That's
quote:

> great. But what if you need to hide NS 4 style sheet from new browsers? I
> was trying to do a style sheet for NS 4, and it was horrible but better


than
quote:

> nothing, but IE 6 saw it and the page didn't render properly in IE 6.
> It was not seeing the imported style sheet at all.
>
> This is what I had in the HTML:
>
> <link type="text/css" rel="stylesheet" media="screen"
> href="ns4111403granat.css" />
>
> <style type="text/css">
> @import url(111403granat.css);
> </style>
>
>
> This is the page: http://www.granatedit.com/testresume.html.
> --
>
> Bonnie Granat
> http://www.granatedit.com
>



You're still torturing yourself Bonnie!
Is anyone still using ns4 likely to be in your target audience?

--
W


Bonnie Granat

2003-12-03, 7:30 pm


"West" <not@this.one> wrote in message
news:9jryb.2802$nm6.17312@news.indigo.ie...
quote:

> "Bonnie Granat" <bgranat@granatedit.com> wrote in message
> news:3fc9bc67@andromeda.5sc.net...
> That's
I[QUOTE][color=darkred]
> than
>
> You're still torturing yourself Bonnie!
> Is anyone still using ns4 likely to be in your target audience?
>



LOL. I just got caught up with other stuff and had a few spare moments and
thought I'd try it. I noticed just now that Netscape tells me to upgrade my
browser (4.79) if I want to view their shopping pages. I think I'll just
forget about it. ; )

--

Bonnie Granat
http://www.granatedit.com

Adam

2003-12-03, 7:30 pm

That slash at the end of the link line might mess it up?.....


<link type="text/css" rel="stylesheet" media="screen"
href="ns4111403granat.css">

<style type="text/css">
@import url(111403granat.css);
</style>


Adam
www.webresults4u.com



"Bonnie Granat" <bgranat@granatedit.com> wrote in message
news:3fc9bc67@andromeda.5sc.net...
quote:

> You'd think my name was Murphy, or something.
>
> I've read that to hide style sheets from NS 4, you do certain things.


That's
quote:

> great. But what if you need to hide NS 4 style sheet from new browsers? I
> was trying to do a style sheet for NS 4, and it was horrible but better


than
quote:

> nothing, but IE 6 saw it and the page didn't render properly in IE 6.
> It was not seeing the imported style sheet at all.
>
> This is what I had in the HTML:
>
> <link type="text/css" rel="stylesheet" media="screen"
> href="ns4111403granat.css" />
>
> <style type="text/css">
> @import url(111403granat.css);
> </style>
>
>
> This is the page: http://www.granatedit.com/testresume.html.
> --
>
> Bonnie Granat
> http://www.granatedit.com
>




Bonnie Granat

2003-12-03, 7:30 pm


"Adam" <info@_REMOVE_TO_REPLY_webresults4u.com> wrote in message
news:fXtyb.103501$X2W1.54190@news04.bloor.is.net.cable.rogers.com...
quote:

> That slash at the end of the link line might mess it up?.....
>
>
> <link type="text/css" rel="stylesheet" media="screen"
> href="ns4111403granat.css">
>
> <style type="text/css">
> @import url(111403granat.css);
> </style>
>
>



That was it, Adam. I'm using XHTML which requires that ending slash, and I
have it on all the other pages, but when I removed it, it worked fine.

THANK YOU. However, now I realize that the NS 4 stylesheet is really awful.
LOL. I would have to clean it up to actually go ahead and do it.

But thank you for solving that mystery. I'm surprised that was it,
because...er...ah...I did what the spec calls for. LOL.


--

Bonnie Granat
http://www.granatedit.com

Bonnie Granat

2003-12-03, 7:30 pm


Adam,
I thought it was the answer, but I was mistaken. Oh, well. Thanks, anyway.
; )


--

Bonnie Granat
http://www.granatedit.com

Nico Schuyt

2003-12-03, 7:30 pm

Bonnie Granat wrote:
quote:

> I've read that to hide style sheets from NS 4, you do certain things.
> That's great. But what if you need to hide NS 4 style sheet from new
> browsers? I was trying to do a style sheet for NS 4, and it was
> horrible but better than nothing, but IE 6 saw it and the page didn't
> render properly in IE 6.
> It was not seeing the imported style sheet at all.
> This is the page: http://www.granatedit.com/testresume.html.



Strange, I downloaded the page and the stylesheet 111403granat.css seems to
work in IE6 (but maybe you changed something?)
There's an error ( "}" too much) in the ns-CSS.
In IE6 I see: http://www.nicoschuyt.nl/test/bonnie_ns.jpg
In NS47 it looks very bad (worse than without CSS :-)
Nico


Adam

2003-12-03, 7:31 pm

Oh, too bad. I'm not much of a code guy, but that slash caught me as not
being quite right.

Good luck :)

Adam
www.webresults4u.com


"Bonnie Granat" <bgranat@granatedit.com> wrote in message
news:3fca8785@andromeda.5sc.net...
quote:

>
> Adam,
> I thought it was the answer, but I was mistaken. Oh, well. Thanks, anyway.
> ; )
>
>
> --
>
> Bonnie Granat
> http://www.granatedit.com
>




Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews