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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS problem with links in NS4

Status
Not open for further replies.

Chrischo

Technical User
Jun 11, 2001
13
US
I have 6 links. Three on the left, an image in the middle, and three on the right. In NS4, the three images on the left give me the hand symbol when I mouseover. The three on the right do not. Exact same code, here it is:

<tr>
<td width=&quot;115&quot; valign=&quot;middle&quot; align=&quot;left&quot; class=&quot;topnav&quot;><a href=&quot; class=&quot;topnav&quot;>harvard home</a></td>

<td width=&quot;135&quot; height=&quot;84&quot; align=&quot;center&quot; rowspan=&quot;3&quot; class=&quot;topnav&quot;><img src=&quot;test3.gif&quot; border=&quot;0&quot; vspace=&quot;0&quot; hspace=&quot;0&quot; alt=&quot;&quot; /></td>

// THIS LINK DOES NOT WORK !!!
<td width=&quot;125&quot; align=&quot;left&quot; valign=&quot;middle&quot; class=&quot;topnav&quot;><a href=&quot; class=&quot;topnav&quot;>administration</a></td>
</tr>
<tr>
<td width=&quot;115&quot; class=&quot;topnav&quot;><a href=&quot; class=&quot;topnav&quot;>hls home</a></td>

// THIS LINK DOES NOT WORK!!!
<td width=&quot;125&quot; align=&quot;left&quot; class=&quot;topnav&quot;><a href=&quot; class=&quot;topnav&quot;>faculty</a></td>
</tr>
<tr>
<td width=&quot;115&quot; class=&quot;topnav&quot;><a href=&quot; class=&quot;topnav&quot;>students</a></td>

// THIS LINK DOES NOT WORK !!!
<td width=&quot;125&quot; align=&quot;left&quot; class=&quot;topnav&quot;><a href=&quot; class=&quot;topnav&quot;>blackboard</a></td>
</tr>

Sorry for the mess but this is maddening. Any help and suggestions will be appreciated. Thanks!

Chris
 
Just out of curiousity why do you have: class=&quot;topnav&quot; in both the <td> and the <a href> tags?? Isn't it only supposed to be in the <a href> tags??
<td width=&quot;115&quot; valign=&quot;middle&quot; align=&quot;left&quot; class=&quot;topnav&quot;><a href=&quot; class=&quot;topnav&quot;>harvard home</a></td> I have not failed; I merely found 100,000 different ways of not succeding...
 
Hi Chrischo,

I just created html page with your code and it works fine, all 6 links are OK! I don't know what problem do you have...
I have only one comment:
[tt].../alumni&quot;; class=&quot;...[/tt]
semicolon (;) should not be inside <A> tag.
 
Chrischo
For me it works also in NN4.7
Can't find what your problem could be?
Maybe your complete code is different. We don't see your <table> tages. Netscape won't forgive you if you forget end-tags like </tr>, </table> so maybe you can take a look in the rest of your code for that.

starway
The semicolon is generated by the tek-tips site. If you post a link (and I thought also an URL, but I'm not 100% sure about that) the tek-tips site generates a semicolon.

Hope this help you guys (I assume),
Erik <!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
Thanks for the responses! I do think the problem lies within the table but not sure why. Here is the complete code:

<?xml version=&quot;1.0&quot; ?>
<!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<html lang=&quot;en&quot;>
<head>
<title>Harvard Law School Faculty Template</title>
<meta name=&quot;author&quot; content=&quot;(none)&quot; />
<meta name=&quot;keywords&quot; content=&quot;Harvard Law School, The Harvard Law School Home Page, Harvard Law School, HLS, Home, Faculty&quot; />
<meta name=&quot;creation_date&quot; content=&quot;01/14/2002&quot; />
<meta name=&quot;expiration_date&quot; content=&quot;(none)&quot; />
<meta name=&quot;maintained_by&quot; content=&quot;(none)&quot; />
<meta name=&quot;description&quot; content=&quot;The Harvard Law School Faculty Page&quot; />
<link rel=&quot;stylesheet&quot; href=&quot;template1_NN.css&quot; type=&quot;text/css&quot; />
<style type=&quot;text/css&quot;> @import url(template2.css);</style>
<script language=&quot;javascript&quot; type=&quot;text/javascript&quot; src=&quot;date.js&quot;>
<script language=&quot;javascript&quot; type=&quot;text/javascript&quot;>
<!--
function writeDate() {}
// -->
</script>
</head>

<body>
<!-- *** BEGIN HEADER TABLES *** -->
<table width=&quot;100%&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;header&quot;>
<tbody>
<tr>
<td width=&quot;400&quot; valign=&quot;top&quot;>
<table width=&quot;400&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;>
<tbody>
<tr>
<td width=&quot;113&quot; valign=&quot;top&quot; class=&quot;header&quot;><img src=&quot;hls_shield.gif&quot; align=&quot;left&quot; border=&quot;0&quot; vspace=&quot;0&quot; hspace=&quot;0&quot; alt=&quot;HLS Shield&quot; /></td>
<td width=&quot;287&quot; valign=&quot;middle&quot; class=&quot;header&quot;><img src=&quot;law_title.gif&quot; border=&quot;0&quot; vspace=&quot;0&quot; hspace=&quot;0&quot; alt=&quot;Harvard University Faculty Page&quot; /></td>
</tr>
<tr>
<td width=&quot;400&quot; height=&quot;35&quot; colspan=&quot;2&quot;>
<table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;>
<tbody>
<tr>
<td width=&quot;35&quot; class=&quot;topnav&quot;><img src=&quot;spacer.gif&quot; border=&quot;0&quot; vspace=&quot;0&quot; hspace=&quot;0&quot; alt=&quot;&quot; /></td>
<td width=&quot;144&quot; height=&quot;35&quot; class=&quot;topnav&quot;><img src=&quot;spacer.gif&quot; border=&quot;0&quot; vspace=&quot;0&quot; hspace=&quot;0&quot; alt=&quot;&quot; /></td>
<td width=&quot;221&quot; class=&quot;topnav&quot;><img src=&quot;spacer.gif&quot; border=&quot;0&quot; vspace=&quot;0&quot; hspace=&quot;0&quot; alt=&quot;&quot; /></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
<td width=&quot;375&quot; height=&quot;128&quot; valign=&quot;top&quot;>
<table width=&quot;375&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;>
<tbody>
<tr>
<td width=&quot;375&quot; height=&quot;44&quot; align=&quot;right&quot; valign=&quot;middle&quot; colspan=&quot;3&quot; class=&quot;header&quot;><script language=&quot;javascript&quot; type=&quot;text/javascript&quot;>writeDate();</script></td>
</tr>
<tr>
<td width=&quot;115&quot; valign=&quot;middle&quot; align=&quot;left&quot; class=&quot;topnav&quot;><a href=&quot; class=&quot;topnav&quot;>harvard home</a></td>
<td width=&quot;135&quot; height=&quot;84&quot; align=&quot;center&quot; rowspan=&quot;3&quot; class=&quot;topnav&quot;><img src=&quot;test3.gif&quot; border=&quot;0&quot; vspace=&quot;0&quot; hspace=&quot;0&quot; alt=&quot;&quot; /></td>
<td width=&quot;125&quot; align=&quot;left&quot; valign=&quot;middle&quot; class=&quot;topnav&quot;><a href=&quot; class=&quot;topnav&quot;>administration</a></td>
</tr>
<tr>
<td width=&quot;115&quot; class=&quot;topnav&quot;><a href=&quot; class=&quot;topnav&quot;>hls home</a></td>
<td width=&quot;125&quot; align=&quot;left&quot; class=&quot;topnav&quot;><a href=&quot; class=&quot;topnav&quot;>faculty</a></td>
</tr>
<tr>
<td width=&quot;115&quot; class=&quot;topnav&quot;><a href=&quot; class=&quot;topnav&quot;>students</a></td>
<td width=&quot;125&quot; align=&quot;left&quot; class=&quot;topnav&quot;><a href=&quot; class=&quot;topnav&quot;>blackboard</a></td>
</tr>
</tbody>
</table>
</td>
<td width=&quot;100%&quot; height=&quot;128&quot; valign=&quot;top&quot; >
<table width=&quot;100%&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;>
<tbody>
<tr>
<td width=&quot;100%&quot; height=&quot;44&quot; class=&quot;header&quot;><img src=&quot;spacer.gif&quot; border=&quot;0&quot; vspace=&quot;0&quot; hspace=&quot;0&quot; alt=&quot;&quot; /></td>
</tr>
<tr>
<td width=&quot;100%&quot; height=&quot;84&quot; class=&quot;topnav&quot;><img src=&quot;spacer.gif&quot; border=&quot;0&quot; vspace=&quot;0&quot; hspace=&quot;0&quot; alt=&quot;&quot; /></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<table align=&quot;left&quot; width=&quot;200&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;>
<tbody>
<tr>
<td width=&quot;35&quot;></td>
<td width=&quot;144&quot; valign=&quot;top&quot;>
<table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;>
<tbody>
<tr><td width=&quot;144&quot; height=&quot;25&quot; class=&quot;sidenav&quot;><a href=&quot;biogr.html&quot; class=&quot;sidenav&quot;>Biographical Info</a></td></tr>
<tr><td width=&quot;144&quot;><img src=&quot;navspacer.gif&quot; border=&quot;0&quot; vspace=&quot;0&quot; hspace=&quot;0&quot; alt=&quot;&quot; /></td></tr>
<tr><td width=&quot;144&quot; height=&quot;25&quot; class=&quot;sidenav&quot;><a href=&quot;cirri.html&quot; class=&quot;sidenav&quot;>Cirriculum Vitae</a></td></tr>
<tr><td width=&quot;144&quot;><img src=&quot;navspacer.gif&quot; border=&quot;0&quot; vspace=&quot;0&quot; hspace=&quot;0&quot; alt=&quot;&quot; /></td></tr>
<tr><td width=&quot;144&quot; height=&quot;25&quot; class=&quot;sidenav&quot;><a href=&quot;worki.html&quot; class=&quot;sidenav&quot;>Working Papers</a></td></tr>
<tr><td width=&quot;144&quot;><img src=&quot;navspacer.gif&quot; border=&quot;0&quot; vspace=&quot;0&quot; hspace=&quot;0&quot; alt=&quot;&quot; /></td></tr>
<tr><td width=&quot;144&quot; height=&quot;25&quot; class=&quot;sidenav&quot;><a href=&quot;publi.html&quot; class=&quot;sidenav&quot;>Published Papers</a></td></tr>
<tr><td width=&quot;144&quot;><img src=&quot;navspacer.gif&quot; border=&quot;0&quot; vspace=&quot;0&quot; hspace=&quot;0&quot; alt=&quot;&quot; /></td></tr>
<tr><td width=&quot;144&quot; height=&quot;25&quot; class=&quot;sidenav&quot;><a href=&quot;acade.html&quot; class=&quot;sidenav&quot;>Academic Courses</a></td></tr>
<tr><td width=&quot;144&quot;><img src=&quot;navspacer.gif&quot; border=&quot;0&quot; vspace=&quot;0&quot; hspace=&quot;0&quot; alt=&quot;&quot; /></td></tr>
<tr><td width=&quot;144&quot; height=&quot;25&quot; class=&quot;sidenav&quot;><a href=&quot;curre.html&quot; class=&quot;sidenav&quot;>Current Projects</a></td></tr>
<tr><td width=&quot;144&quot;><img src=&quot;navspacer.gif&quot; border=&quot;0&quot; vspace=&quot;0&quot; hspace=&quot;0&quot; alt=&quot;&quot; /></td></tr>
<tr><td width=&quot;144&quot; height=&quot;25&quot; class=&quot;sidenav&quot;><a href=&quot;bibli.html&quot; class=&quot;sidenav&quot;>Bibliography</a></td></tr>
<tr><td width=&quot;144&quot;><img src=&quot;navbottomspacer.gif&quot; border=&quot;0&quot; vspace=&quot;0&quot; hspace=&quot;0&quot; alt=&quot;&quot; /></td></tr>
</tbody>
</table>
</td>
<td width=&quot;21&quot;><img src=&quot;spacer.gif&quot; border=&quot;0&quot; vspace=&quot;0&quot; hspace=&quot;0&quot; alt=&quot;&quot; /></td>
</tr>
</tbody>
</table>
<!-- *** END HEADER TABLES *** -->
<!-- *** BEGIN CONTENT TABLE *** -->
<table width=&quot;575&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;>
<tbody>
<tr>
<td>
<br />
<b>William W. Fisher, III</b><br />
<i>Professor of Law, Harvard University</i>
<br /><br />
<img src=&quot;temp.jpg&quot; align=&quot;left&quot; vspace=&quot;3&quot; hspace=&quot;15&quot; alt=&quot;Lucian Arye Bebchuk&quot; /><br />
Most of my work pertains to four related topics: American Legal History; Property Law; Intellectual-Property Law; and the Law of the Internet. The principal purpose of this homepage is to make my scholarship and teaching materials on those topics more widely available. welcome comments and suggestions, especially concerning my current projects.
<br /><br />
<a href=&quot;test.html&quot; class=&quot;main&quot;>Lucian Arye Bebchuk </a>is the William J. Friedman and Alicia Townsend Friedman Professor of Law,
Economics, and Finance at Harvard Law School. He is also a Fellow of the American Academy of
Arts and Sciences, a Research Associate of the National Bureau of Economic Research, and a
frequent visitor to Tel Aviv University.
<br /><br />
Trained in both law and economics, Bebchuk holds a B.A. in Mathematics and Economics from the
University of Haifa, an LL.B. from the University of Tel-Aviv, an M.A. and Ph.D in Economics
from the Harvard Economics Department, and an LL.M. and S.J.D. from Harvard Law School.
Following a three-year fellowship at the Harvard Society of Fellows, he joined the Harvard Law
School faculty in 1986 as an assistant professor, becoming a full professor in 1988 and the
Friedman Professor of Law, Economics and Finance in 1998.
</td>
</tr>
</tbody>
</table>
<!-- *** END CONTENT TABLE *** -->
<!-- *** BEGIN FOOTER TABLE *** -->
<div align=&quot;center&quot;>
<table>
<tbody>
<tr>
<td width=&quot;600&quot;>
<br /><br />
<hr width=&quot;100%&quot; align=&quot;left&quot; />
<span class=&quot;footer1&quot;>Harvard Law School, 1563 Massachusetts Avenue, Cambridge, MA 02138</span><br />
<span class=&quot;footer2&quot;>Phone: 617-495-3100; <a href=&quot;/cgi-bin/contact.pl&quot;>Contact Harvard Law School</a>.</span>
<br /><br />
<span class=&quot;small&quot;>Copyright © 2002 The President and Fellows of Harvard College.<a href=&quot; Copyright Infringement</a>
<br />
Last modified: Mon, Jan 14, 2002, 12:24:00 EST.
<br />
URI: /index.shtml
<br />
</span>
</td>
</tr>
</tbody>
</table>
</div>
<!-- *** END FOOTER TABLE *** -->

</body>
</html>
 
As one of the guys already said, just clean-up the code, remove the &quot;class=&quot; from the cell. Perhaps this is causing some confusion for your browser(??).
And double check that semi colon ; is not in your original code.

É
 
I have taken out the extra class but still no effect. I have tried to rearrange the tables, which seems to be working. Problem is that the table is broken in NS. Still looking for ideas...
 
Hey, I see a few things wrong with the code:

1... You did not end one of the <script> tags... <script language=&quot;javascript&quot; type=&quot;text/javascript&quot; src=&quot;date.js&quot;></script>
<script language=&quot;javascript&quot; type=&quot;text/javascript&quot;>
<!--
function writeDate() {}
// -->
</script>


2... I know that DreamWeaver accepts XML coding but for some reason in my DW4, the following code lights up in yellow (which typicaly means that something is not right):

<?xml version=&quot;1.0&quot; ?>
<!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<html lang=&quot;en&quot;>
<head>

<title>Harvard Law School Faculty Template</title>
<meta name=&quot;author&quot; content=&quot;(none)&quot; />
<meta name=&quot;keywords&quot; content=&quot;Harvard Law School, The Harvard Law School Home Page, Harvard Law School, HLS, Home, Faculty&quot; />
<meta name=&quot;creation_date&quot; content=&quot;01/14/2002&quot; />
<meta name=&quot;expiration_date&quot; content=&quot;(none)&quot; />
<meta name=&quot;maintained_by&quot; content=&quot;(none)&quot; />
<meta name=&quot;description&quot; content=&quot;The Harvard Law School Faculty Page&quot; />
<link rel=&quot;stylesheet&quot; href=&quot;template1_NN.css&quot; type=&quot;text/css&quot; />
<style type=&quot;text/css&quot;> @import url(template2.css);</style>
<script language=&quot;javascript&quot; type=&quot;text/javascript&quot; src=&quot;date.js&quot;>
<script language=&quot;javascript&quot; type=&quot;text/javascript&quot;>
<!--
function writeDate() {}
// -->
</script>
</head>

<body>

You might want to make sure that <?xml version=&quot;1.0&quot; ?> is coded right...

3... I've never used XML so i'm not sure if this part is valid or not, but in CSS (mush to my knowledge) I know this isn't right: <style type=&quot;text/css&quot;> @import url(template2.css);</style>

4... I'm not sure why you have semi-colon before all the instances of the &quot;class=&quot;, (EX: a href=&quot;; class=&quot;topnav&quot;)

If I were you, i'd just try to redo the page, sometimes its easier that way then to debug the page... I have not failed; I merely found 100,000 different ways of not succeding...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top