Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS and NetScape Support???

Status
Not open for further replies.

joelwenzel

Programmer
Jun 28, 2002
448
Is css supported by netscape?

I wrote a page in explorer and it looks great. When I try to view it in netscape, it does not work. The problem seems to be coming from the <span> tag. Is this feature and others not supported in netscape? The hand cursor does not appear whne the mouse is on top of &quot;P1&quot; in the table. Ths javascript code is not called either.

This is my code

<table>
<tr>

<span style=&quot;cursor: hand&quot; onclick=&quot;toggle(1,5);&quot;>
<td id=tab1>P1</td>
</span>

</tr>
</table>
 
Thanks for the tip. I will use pointer from now. However, Netscape still would not recognizing the span tag.

After a bit of experimenting, I discovered that I had to move the style and onclick event inside the td tag

<table>
<tr>
<td id=tabP1 style=&quot;cursor:pointer&quot; onclick=&quot;toggle(1,5);&quot;>P1</td>
</tr>
</table>

This worked which raised some questions. I did not realize that td has an onclick event. Does pretty much everything have an onclick event? (<a>,<p>,<h1>,<hr>, etc)
 
Yes. Everything has an onlick event. Like this(!):
<hr width=&quot;100%&quot; height=&quot;10&quot; onClick=&quot;alert('Yes, I can be clicked, but STOP!!! It hurts me:(');&quot;>;-)

Rick If I have helped you just click the first link below to let me know :)
 
Sorry! I thought I was posting this in a different thread!!!

Rick If I have helped you just click the first link below to let me know :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top