We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33160
    • 24 Posts
    Hello, Please can any one tell me the quickest way to get a horizontal dropdown menu with wayfinder? I tried using the examples at the snippet creator’s site but they aint just working and keep listing the menu as the default vertical menu. Please any code and tips to achieve this will be highly appreciated
      • 12379
      • 460 Posts
      Without seeing what you’ve done it sounds like you’ve got some css problems.

      Here’s a pure css drop down based on a dropdown at www.cssplay.co.uk:

      Create these chunks for the WayFinder call:
      cssplay_inner:
      <ul>
          [+wf.wrapper+]
      </ul>

      cssplay_outer:
      <div[+wf.classes+]>
          <ul>
              [+wf.wrapper+]
          </ul>
      </div>

      cssplay_parentRow:
      <li><a [+wf.classes+] href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>
          <!--[if lte IE 6]>
          <a class="sub" href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]
          <table><tr><td>
          <![endif]-->
          [+wf.wrapper+]
          <!--[if lte IE 6]>
      	</td></tr></table>
          </a>
          <![endif]-->
      </li>

      cssplay_row:
      <li[+wf.classes+]><a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>[+wf.wrapper+]</li>

      WayFinder call:
      [[Wayfinder? &startId=`0` &level=`3` &parentClass=`hide` &parentRowTpl=`cssplay_parentRow` &outerTpl=`cssplay_outer` &innerTpl=`cssplay_inner` &rowTpl=`cssplay_row` &outerClass=`menu`]] 


      Header code to be inserted in template:
      
      <link rel="stylesheet" media="all" type="text/css" href="assets/templates/yoursitename/dropdown.css" />
      <!--[if lte IE 6]>
      <link rel="stylesheet" media="all" type="text/css" href="assets/templates/yoursitename/dropdown_ie.css" />
      <![endif]-->


      Create "dropdown.css" file and a put in directory as previous step:

      .menu {
      	font-family: arial, sans-serif;
      	width: 810px;
      	position: relative;
      	font-size: 12px;
      	z-index: 95;
      	height: 20px;
      }
      
      .menu ul li a, .menu ul li a:visited {
      	text-decoration: none;
      	height: 20px;
      	line-height: 20px;
      	font-size: 12px;
      	overflow: hidden;
      	text-align: right;
      	width: 95px;
      	margin: 0 30px 0 0;
      	padding: 2px 6px;
      	border: 1px solid #b4d7ec;
       background: #fff url(/assets/templates/yoursite/images/menu_bullet.gif) no-repeat 6px center;
      	display: block;
      	font-weight: bold;
      	color: #333;
      }
      
      .menu ul {
      	padding: 0;
      	margin: 0;
      	list-style-type: none;
      }
      
      .menu ul li {
      	float: left;
      	margin-right: 1px;
      	position: relative;
      	margin-left: 0;
      }
      
      .menu ul li ul {
      	display: none;
      }
      
      /* specific to non IE browsers */
      
      .menu ul li:hover a {
      	color: #000;
      	background-color:  #deecf7;
      }
      
      .menu ul li.last a {
      	margin-right: 0;
      }
      
      .menu ul li:hover ul {
      	display: block;
      	position: absolute;
      	top: 26px;
      	left: 0;
      	width: 95px;
      }
      
      .menu ul li:hover ul li a.hide {
      	background: #fff;
      	color: #000;
      }
      
      .menu ul li:hover ul li:hover a.hide {
      	background: #deecf7;
      	color: #000;
      }
      
      .menu ul li:hover ul li ul {
      	display: none;
      }
      
      .menu ul li:hover ul li a {
      	display: block;
      	background: #fff;
      	color: #000;
      	border: 1px solid #b4d7ec;
      	border-top-style: none;
      }
      
      .menu ul li:hover ul li a:hover {
      	background:  #deecf7;
      	color: #000;
      }
      
      .menu ul li:hover ul li:hover ul {
      	display: block;
      	position: absolute;
      	left: 95px;
      	top: 0;
      }
      
      .menu ul li:hover ul li:hover ul.left {
      	left: -95px;
      }


      And this css file "dropdown_ie.css" for ie6:

      .menu ul li a.hide, .menu ul li a:visited.hide {display:none;}
      .menu ul li a:hover ul li a.hide {display:none;}
      
      .menu ul li a:hover {color:#000; background: #deecf7;}
      .menu ul li a:hover ul {display:block; position:absolute; top:26px; left:0; width:95px;}
      .menu ul li a:hover ul li a.sub {background: #fff; color: #000;}
      .menu ul li a:hover ul li a {display:block; background: #fff; color:#000;
      	border: 1px solid #b4d7ec;
      	border-top-style: none;}
      .menu ul li a:hover ul li a ul {visibility:hidden;}
      .menu ul li a:hover ul li a:hover {background: #deecf7; color:#000;}
      .menu ul li a:hover ul li a:hover ul {visibility:visible; position:absolute; left:95px; top:0; color:#000;}
      .menu ul li a:hover ul li a:hover ul.left {left:-95px;}


      You’ll need to style the menu further to get the look you require. Good luck!
        Mostly harmless.
        • 33160
        • 24 Posts
        Thanks for that hotdiggity. I will try that and let you know if i have success
          • 22282
          • 10 Posts
          Thank you for this post.

          I came across an issue with the ie6 css that the menu items weren’t floating horizontal. The following fixed it.

          Put this at the top of the dropdown_ie.css file.

          .menu li {float:left;position:relative;width:95px;}
            • 12379
            • 460 Posts
            Awesome - thanks!
              Mostly harmless.