We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17368
    • 3 Posts
    Hi, I have a problem where my menu generated by wayfinder wont display properly. It works fine but wont display properly. On any active menu button, the button becomes weird. It has a dotted line all around the button, and a bunch of extra green on the left where it shouldn’t exist. You can see it here: http://lodd.66ghz.com/

    Sorry bout the site, still building it.

    Funny thing is that this problem occurs in Opera and Firefox, but not in IE6... (I dont know about IE7) And all this time i’ve been using Opera... Lol.

    Anyway, I tried to fix it but I’m not that good with css OR with wayfinder so I’m not entirely sure what the problem is. I checked the wayfinder template chunk that I’m using and it seems ok.

    <li[+wf.id+][+wf.classes+]>
    <a href="[+wf.link+]" title="[+wf.title+]" [+wf.attributes+]><span>[+wf.linktext+]</span></a>
    [+wf.wrapper+]</li>
    


    I checked my coding in case I referenced something wrongly or misspelt my css classes (wouldn’t be the first time) but it was all ok.

    I even went as far as to change my doctype from xhtml1.0 Strict to Transitional to see if that would help but still nothing.

    Therefore I’d like to ask for help here because if you don’t know something, you should ask the smarter guys right? (Yes, that was blatant flattery. I’ll do anything to fix this problem.) Any help will be greatly appreciated.

    #menu 
    {
     float: right;
     height: 23px;
     margin-top: 35px;
    }
    
    #menu a 
    {
     color: #fff;
     background-image: inherit;
     text-decoration: none;
     padding-left: 10px;
     line-height: 23px;
     font-weight: bold;
    }
    
    #menu a span 
    {
     padding-right: 10px;
    }
    
    #menu a, #menu a span 
    {
     display: block;
     float: left;
    }
    
    #menu a:hover, #menu .current 
    {
     color: #fff;
     background-image: url(images/tabl.gif);
     background-color: #a9bc52;
     background-repeat: no-repeat;
     background-position: left top;
     padding-left: 10px;
     height: 23px;
    }
    
    #menu a:hover span, #menu .current span 
    {
     background-image: url(images/tabr.gif);
     background-repeat: no-repeat;
     background-position: right top;
     padding-right: 10px;
     height: 23px;
     cursor: pointer;
    }
    
    #menu ul 
    {
     list-style: none;
     padding: 0;
     margin: 0;
    }
    
    #menu li 
    {
     float: left;
     margin-top: 0;
     margin-right: 0;
     margin-bottom: 0;
     margin-left: 5px;
    }
    



    P.S. I’ve only had ModX for 3 days now but I’m LOVING IT!!!
      • 17368
      • 3 Posts
      Muahaha!! I solved it! I dont now why this works, but it does! I simply moved the [+wf.classes+] placeholder from the <li> tag into the <a> tag.

      From this...

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


      to this...

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


      And now it works wonderfully. This i why I love modx, it reads your mind and solves your problems for you. Next I’m gonna give modX my calculus homework. Thanks anyway.

      P.S. This happens to be my first and second post respectively. Hi all.
      P.P.S. Since I fixed it, if your wondering what the problem looked like, you can download a screenshot that I took:
      http://www.mediafire.com/?czhmw0xnxsm

      It’s a 7kb PNG file. Check out the home button. That was my problem. It would follow me to every active page. Thank god it’s solved.
        • 7455
        • 2,204 Posts
        in FF on mac the menu does not look right:
          follow me on twitter: @dimmy01
          • 17368
          • 3 Posts
          Thanks for the feedback. It took a while but I figured out it was because of my float. It should be fixed in FF now.

          grin