Add a Class to a UL

  •  09-02-2008, 5:09 AM

    Add a Class to a UL

    Hi
     
    I am having trouble adding a CSS class to a UL
     
    I created a UL list eg
    • dgddsad
    • dsadasd
    • dsadsad
    • dasdad
    html
    <ul>
        <li>dgddsad</li>
        <li>dsadasd</li>
        <li>dsadsad</li>
        <li>dasdad</li>
    </ul>
     
    and highlighted the entire list and choose the Class that i wanted to apply to the UL.
     
    But instead of applying the class to the UL  an additional LI had been created and a span placed inside with the class. e.g.
    •  
    • dgddsad
    • dsadasd
    • dsadsad
    • dasdad
     html
     <ul>
        <li><span class="TextMenu">&nbsp;</li>
        <li>dgddsad</li>
        <li>dsadasd</li>
        <li>dsadsad</li>
        <li>dasdad </li>
        </span></ul>
     
    I know that I could manually add the class the UL but my clients are not computer savy and they will only want to apply the class using the drop down and not get involved with this level of detail.
     
    so my question is:
     
    How do I apply a Class to a UL?
     
     
     
     
View Complete Thread