Forum Moderators: not2easy

Message Too Old, No Replies

Choosing From Multiple Style Sheets based on Browser

Is NS4 dead YET?

         

stuntdubl

6:02 pm on Sep 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I keep trying to go back and fix my pages to work with the "less than 5" browsers, but it gets pushed to the back of the list everytime I start.

What is the best/easiest/fastest loading way to choose from a couple different style sheets so that my pages don't look like doo in NS4 and other crappy browsers?

I have everything positioned at center for normal browsers, but I think if I just aligned it all to the left (maybe) it would be okay in the lower browsers.

Can we revisit the schools of thought on handling NS4?

Purple Martin

11:03 pm on Sep 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Every time we get a discussion about whether N4 can be dropped we get two kinds of people posting:

1. The people who only get a tiny percentage of N4 users viewing their site: they think it's fine to drop N4 support.

2. The people who still get a significantly large percentage N4 users viewing their site: they think it's essential to fully support N4.

Check your logs to find out what YOUR audience uses: then you'll know whether or not you can afford to drop N4.

If you need to keep N4, put all your basic styles in one .css file, and then use the @import trick to bring in styles that new browsers like but N4 can't handle. It goes like this:

<link rel=stylesheet href="n4safe.css">
<STYLE TYPE="text/css">
@import url(others.css);
</STYLE>

TGecho

11:32 pm on Sep 9, 2003 (gmt 0)

10+ Year Member



I would like to add a quick note to PM's excellent advice. You can drop the import at the top of your css file. That'll help keep your html tidy.

aaronjf

5:28 am on Sep 10, 2003 (gmt 0)

10+ Year Member



To be tottaly honest with you I see only about 1 - 4% of visitors using Netscape of any version. Most of the visitors I see are using Mozilla and IE. That is based on tracking stats on an average 65,000+ unique visitors a month across 11 sites.

I know a lot of people want to squeeze as much viewabilitly as possibile form their site, but there is such a thing as "Too much sugar for a dime." Is it really worth it to you. Like Purple Martin said, see what's right for you from your logs/stats.