We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6852
    • 39 Posts
    Hi,

    i have an accordion menu that’s working great its two levels and is completely stylized through CSS,

    i have set up the level two so that when it drops down there is a curve at the end of it, this i did through CSS
    #navigation li.last.level2 {
    and it works great except on one occasion.
    when i have only a single element in my level two it will not be recognized as
    <li class="last level2">
    but rather stays as
    <li class="level2">


    i’ve attached two screenshots that will probably explain thins better(with firebug on as well)

    image:Problem1: shows my "level2" applying to a single element
    image:Problem1: shows the "last level2" working perfectly with 2 elements

    so to sum up i want it so that when there is a simgle element appearing in "level2" it is to be treated as a "last level"

    does this make a lot of sense to anyone?

    thanks very much
      • 3707
      • 241 Posts
      Perhaps you could put an image into the <ul> element instead of the <li>.