Solved

Suckerfish Drop down menu - how to format it

Posted on 2006-06-15
3
426 Views
Last Modified: 2008-03-04
I'm looking to use the Suckerfish Dropdown menu:
http://www.htmldog.com/articles/suckerfish/dropdowns/

But, I want to make the bare-bones example:

http://www.htmldog.com/articles/suckerfish/dropdowns/example/bones1.html


look something like this one (but with only one level):

http://www.htmldog.com/articles/suckerfish/dropdowns/example/


Is it hard to format it to look like the pretty one?
Is there any easy way to do?   thanks............

0
Comment
Question by:MikeMCSD
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
jagadeesh_motamarri earned 500 total points
ID: 16911425
OK...here is the modified code for single level -


CODE:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
      "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>

<head>
<title>Suckerfish Dropdowns - Perciformes!</title>

<style type="text/css">

body {
      font: 78%/1.5 arial, helvetica, serif;
      background: white url(bgbaba.gif);
      text-align: center;
      padding: 0;
      margin: 2em;
}

#container {
      width: 36em;
      background: #F4ECD9;
      text-align: left;
      border: 1px solid #eda;
      margin: 0 auto;
}

p {
      background: url(remorabg.gif) center no-repeat;
      margin: 1em 2em;
}

p#smurf {
      background: transparent;
      font-style: italic;
      text-align: center;
      font-weight: bold;
      color: #7C6240;
}

#smurf strong {
      font-size: 1.2em;
      color: black;
}

h1 {
      height: 108px;
      background: url(perciformes3.gif) bottom center no-repeat;
      text-indent: -999em;
      margin: 1em 0 0 0;
}

#nav, #nav ul {
      float: left;
      width: 36em;
      list-style: none;
      line-height: 1;
      background: white;
      font-weight: bold;
      padding: 0;
      border: solid #eda;
      border-width: 1px 0;
      margin: 0 0 1em 0;
}

#nav a {
      display: block;
      width: 10em;
      w\idth: 6em;
      color: #7C6240;
      text-decoration: none;
      padding: 0.25em 2em;
}

#nav a.daddy {
      background: url(rightarrow2.gif) center right no-repeat;
}

#nav li {
      float: left;
      padding: 0;
      width: 10em;
}

#nav li ul {
      position: absolute;
      left: -999em;
      height: auto;
      width: 14.4em;
      w\idth: 13.9em;
      font-weight: normal;
      border-width: 0.25em;
      margin: 0;
}

#nav li li {
      padding-right: 1em;
      width: 13em
}

#nav li ul a {
      width: 13em;
      w\idth: 9em;
}

#nav li ul ul {
      margin: -1.75em 0 0 14em;
}

#nav li:hover ul ul, #nav li:hover ul ul ul, #nav li.sfhover ul ul, #nav li.sfhover ul ul ul {
      left: -999em;
}

#nav li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li.sfhover ul, #nav li li.sfhover ul, #nav li li li.sfhover ul {
      left: auto;
}

#nav li:hover, #nav li.sfhover {
      background: #eda;
}

#content {
      clear: left;
}

#content a {
      color: #7C6240;
}

#content a:hover {
      text-decoration: none;
}

#scaffolding {
      height: 70px;
      background: white url(/images/header_bg.gif) no-repeat;
      border: solid #eda;
      border-width: 1px 0 0 0;
      margin: 1em 0 0 0;
}

#scaffolding a {
      text-decoration: none;
      text-indent: -999em;
      display: block;
      height: 70px;
      background: url(/images/hdlogo_flip2.gif) no-repeat;
      background-position: 181px 0;
}

#scaffolding a:hover {
      background-position: 181px -70px;
}

</style>

<script type="text/javascript"><!--//--><![CDATA[//><!--

sfHover = function() {
      var sfEls = document.getElementById("nav").getElementsByTagName("LI");
      for (var i=0; i<sfEls.length; i++) {
            sfEls[i].onmouseover=function() {
                  this.className+=" sfhover";
            }
            sfEls[i].onmouseout=function() {
                  this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
            }
      }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

//--><!]]></script>


</head>

<body>

<div id="container">
<h1>PERCIFORMES!</h1>
<p id="smurf">Welcome to the universe of Perciformes - perch-like fish that include the world famous <strong>Suckerfish</strong></p>

<ul id="nav">

      <li><a href="#">Percoidei</a>
            <ul>
                  <li><a href="#" >Remoras</a></li>
                  <li><a href="#" >Tilefishes</a></li>
                  <li><a href="#" >Bluefishes</a></li>
                  <li><a href="#" >Tigerfishes</a></li>
            </ul>
      </li>

      <li><a href="#">Anabantoidei</a>
            <ul>
                  <li><a href="#" >Climbing perches</a></li>
                  <li><a href="#" >Labyrinthfishes</a></li>
                  <li><a href="#">Kissing gouramis</a></li>
                  <li><a href="#">Pike-heads</a></li>
                  <li><a href="#">Giant gouramis</a></li>
            </ul>
      </li>

      <li><a href="#">Gobioidei</a>
            <ul>
                  <li><a href="#">Burrowing gobies</a></li>
                  <li><a href="#">Dartfishes</a></li>
                  <li><a href="#">Eellike gobies</a></li>
                  <li><a href="#">Gobies</a></li>

                  <li><a href="#">Loach gobies</a></li>
                  <li><a href="#">Odontobutidae</a></li>
                  <li><a href="#">Sandfishes</a></li>
                  <li><a href="#">Schindleriidae</a></li>
                  <li><a href="#">Sleepers</a></li>
                  <li><a href="#">Xenisthmidae</a></li>

            </ul>
      </li>

</ul>

<div id="content">
      <p>Hello. You have found an example page for <strong>Suckerfish Dropdowns</strong>. Under the hood you will find some nice structured HTML, a smattering of CSS and a teensy bit of JavaScript (that's just 12 lines of it). It's lightweight, it's accessible, it's cross-compatible.</p>
      <p>Suckerfish Dropdowns are brought to you by <a href="/ptg/">Patrick Griffiths</a>, <a href="http://www.danwebb.net/">Dan Webb</a> and the letter C. To find out more about Suckerfish Dropdowns, check out the <a href="/articles/suckerfish/dropdowns/">article in HTML Dog</a>. To find out more about perch-like fishes, <a href="http://www.google.com/search?q=perciformes">give Google a try</a>.</p>

      <p>Something else that might (possibly) be of interest (maybe) is that this page has an <a href="http://www.alistapart.com/articles/elastic/">elastic layout</a>. Try increasing your browser's text size setting and watch that layout grow! It's just like those toys that expand when you put them in water. Only without the water. And with more HTML. And CSS. Oh forget it. It's not really like them at all.</p>
      <p id="scaffolding"><a href="http://www.htmldog.com/" title="Go t'HTML Dog">Go on. Visit HTML Dog</a></p>
</div>

</div>

</body>

</html>

--------------------------
Lemme know there is something wrong


_____Jags.
0
 
LVL 16

Author Comment

by:MikeMCSD
ID: 16912223
nice!  thanks Jags
0
 
LVL 10

Expert Comment

by:jagadeesh_motamarri
ID: 16912239
:-)

Thank You,
____Jags.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Change box shadow 1 44
ASP.NET Content Page 3 64
Put check in your check box 7 25
css messed up 8 28
Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question