i see part of the problem but i can't find a suitable solution. if i enter some text for the hyperlink, thus making the div bigger, then the link works. Example: <p><a name="mainnav" id="mainnav"> main navigation</a></p>
If i take out the text "main navigation" then link does not work. i think the problem is that there is not enough space between the header graphic and the navigation div. for some reason, dreamweaver does not like me adding an anchor inside the nav 2 div. in fact, when i add the anchor, the 2px top padding (from css) does not become visible.
here is a copy of the style sheet for the navigation 2 div.
/*----------------------------*/
/* 2.4 - Navigation - Level 2 */
/*----------------------------*/
.nav2 {margin: 0px; padding: 2px 0 0 0; font-family: verdana, arial, "sans serif"; font-size: 0.83em; background-color:#FFFFFF;}
.nav2 ul {float: left; width: 770px; margin: 0px; padding: 0px; font-weight: bold;}
.nav2 li {display: inline; list-style: none; margin: 0; padding: 0px; background-color: rgb(130,162,182); }
.nav2 li a {
display: block;
float: left;
margin: 0px;
color: rgb(255,255,255);
text-transform: uppercase;
text-decoration: none;
font-size: 0.83em;
background:url(../img/tab-green-left2.gif) left top no-repeat;
background-color: rgb(130,162,162);
making the margin bigger in the css breaks up the page format plus does not make the anchor work.
in case you are wondering, the navigation i want to jump to has 2 tabs. clicking one shows the tab's submenu in horizontal format. See code below.
<body>
<div class="page-container-2">
<!-- HEADER -->
<!-- SKIP NAVIGATION -->
skip navigation stuff goes here
<!-- Navigation Level 1 -->
top navigation stuff goes here
<!-- Header banner -->
<div><img src="../img/banner copy.jpg" alt="logo and title. Collage of 4 photographs: trainers and trainees in class, lightbulb, open book and pen and students at a presentation." width="770" height="250" class="img-header"/></div>
<!-- Navigation Level 2 -->
<div class="nav2">
<p><a name="mainnav" id="mainnav"></a></p>
<ul>
<li><a href="../Policy/policy_home.html"><span>Policy </span></a></li>
<li><a href="../mmmm.html" class="selected"><span>LAWS</span></a></li>
</ul>
</div>
<div class="nav2secondary">
<ul>
<li><a href="../x" >xxx</a></li>
<li><a href="../sss.html" class="selected">xxx</a></li>
</ul>
</div>