/    Sign up×
Community /Pin to ProfileBookmark

CSS2(?) in older browsers

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,

Brian

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@gil_davisMar 10.2003 — [i]Originally posted by haynbrian [/i]

[B]span {cursor: hand ; }[/b][/quote]
The W3C syntax (and what NS 7 will like) iscursor: pointerTo make IE happy, you can add some script:&lt;style type="text/css"&gt;
.pointer {cursor: pointer; color: blue}
P {color: green}
&lt;/style&gt;
&lt;script&gt;
if (document.all)
{document.styleSheets[0].addRule(".pointer", "cursor: hand; color: red");}
&lt;/script&gt;
[b]However, in Navigator 4.x, it doesnt work at all.[/b][/quote]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.[b]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.[/b]
[/quote]
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.
Copy linkTweet thisAlerts:
@haynbrianauthorMar 11.2003 — Thank you! Makes perfect sense to me now.

Brian
×

Success!

Help @haynbrian spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...