Forum Moderators: not2easy

Message Too Old, No Replies

Netscape 4, @media screen, display none

How to make it work

         

jalarie

2:04 pm on Aug 24, 2006 (gmt 0)

10+ Year Member



As far as I can see, the following should work even on Netscape 4, but it doesn't. Can anyone tell me what I'm doing wrong?

<style>
@media screen {
.NotOnScreen { display: none; }
}
</style>

On screen
<span class="NotOnScreen">Not seen</span>
More on screen

encyclo

2:05 am on Aug 28, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



@media
is not supported by Netscape 4 (or IE before version 5.5). If you really need to support Netscape 4 then you can use the old trick of using a standard linked stylesheet for NN4-only rules, then overriding those rules in a second imported stylesheet.

Netscape 4s overall browser share has dropped to less that 0.1% when looking at general site statistics - unless you have a very specific need on your particular site, then don't worry about anything lower than Mozilla 1.4 (Netscape 7).