Jump to content

Navigation Help


thisagain

Recommended Posts

I need help with some CSS drop down code. I am working on a horizontal drop down menu which works fine. The code creates a horizontal list that produces a drop down horizontal menu just below.

 

What I don't know how to do is to make a third horizontal drop down just below it (there must be a way). I would like the first two rows to be a static list (they don't disappear when there is no hover). The third row would function like a regular horizontal drop down.

 


 

This is my css:

 

div#nava {

float:left;

font-size:11pt;

font-weight:bold;

margin:0px 0px 20px 0px;

padding:0px 150px 0px 150px;

width:100%;

}

#nav {

list-style:none;

margin:0px 0px 0px 0px;

padding:0px 0px 0px 0px;

white-space:nowrap;

}

#nav ul {

list-style:none;

height:40px;

margin:-10px 0px 0px -115px;

padding:13px 0px 0px 0px;

white-space:nowrap;

}

#nav a {

color:#45591c;

display:block;

margin:0px 21px 0px 21px;

text-decoration:none;

width:auto;

}

#nav li {

float:left;

width:auto;

}

#nav li ul {

color:#45591c;

display:inline;

font-size:9.5pt;

font-weight:normal;

left:-999em;

position:absolute;

width:100%;

}

#nav li ul a {

margin:0px 5px 0px 15px;

}

#nav li:hover ul, #nav li.sfhover ul {

left:auto;

}

#nav a:hover, #nav a.sfhover {

color:#000000;

}

 

 

This is the html:

 

<div id="nava">

<ul id="nav">

  <li><a href="firstrow_first.php">1ST ROW 1ST</a></li>

  <ul>

    <li><a href="secondrow_first.php">2ND ROW 1ST</a></li>

    <li><a href="secondrow_second.php">2ND ROW 2ND</a></li>

    <li><a href="secondrow_third.php">2ND Row 3RD</a></li>

  </ul>

  </li>

  <li><a href="firstrow_second.php">1ST ROW 2ND</a></li>

  <li><a href="firstrow_third.php">1ST ROW 3RD</a>

</ul>

</div>

 


 

 

What is the best way to do what I would like to do?

 

Any help is appreciated.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.