CSS2(?) in older browsers

liunx

Guest
Hello Everyone. I have a question.

I'm creating a site that uses CSS that can't be viewed in Netscape Navigator 4.x, and some parts that aren't even viewable in 7.0. I would like the site to be 100% viewable in most browsers, although I know that is a longshot.

I have in my head this style tag:

<STYLE>
span {cursor: hand ; }
.on {color: #003366 ; text-decoration: underline ; }
.off{color: #003366 ; }

</STYLE>

I use it with javascript to create an effect of text (not an official <a href> link) to make something pop up in a smaller window. However, in Navigator 4.x, it doesnt work at all. In version 7.0, I get the new window, but the cursor doesn't change. Odd. First, do you think it's the CSS that doens't work or is it the javascript?

My second question is regarding a style attribute placed in a tag. When I place this in my table tag:

<table style="border: solid #000000 2px">

...it doesn't show up in the navigator version 4.x. Any suggestions on how I could get it to work?

Thanks in advance,

BrianOriginally posted by haynbrian
span {cursor: hand ; }The W3C syntax (and what NS 7 will like) iscursor: pointerTo make IE happy, you can add some script:<style type="text/css">
.pointer {cursor: pointer; color: blue}
P {color: green}
</style>
<script>
if (document.all)
{document.styleSheets[0].addRule(".pointer", "cursor: hand; color: red");}
</script>However, in Navigator 4.x, it doesnt work at all.Don't expect it to. NS 4 only has mouse events for anchors, layers and some form objects. You can add some mouse events (over, out, up, and down) to an image, but not a click.My second question is regarding a style attribute placed in a tag...
<table style="border: solid #000000 2px">
...it doesn't show up in the navigator version 4.x.NS 4 does not apply styles to things that are not considered content containers. It will not honor styles for TABLE, TR, FORM, and some others. You can place the TABLE in a DIV or SPAN and apply the border to that.Thank you! Makes perfect sense to me now.

Brian
 
Back
Top