I am trying to impliment a Horizontal CSS based menu. The problem that I am having is that I want the last two elements of my Menu to dropdown to the left instead of the right. I was able to modify my original CSS to make that happen, but it happens to the entire menu not just the final elements.
I took the modified CSS and created a second class and want to apply that class to the last two elements. Unfortunately, when I do this the menu is still only using the initial CSS class.
An example of what I am trying to accomplish follows:
<!--Default Class for the menu all elements drop to the right-->
<ul class="menulist" id="listMenuRoot">
<li><a href="">Home</a></li>
<li><a href="">Submenu</a>
<ul>
<li><a href="">Here's a submenu item.</a></li>
<li><a href="">Here's another submenu item.</a></li>
</ul>
</li>
<!--2nd Class for the menu elements should drop to the left-->
<li class="menuright"><a href="">Submenu 2</a>
<!--No matter where I apply the Class the main class is overriding it-->
<ul class="menuright">
<li><a href="">Nested menu 1</a>
<ul>
<li><a href="">Here's a submenu item.</a></li>
<li><a href="">Here's another submenu item.</a></li>
</ul>
</li>
<li><a href="">Nested menu 2</a>
<ul>
<li><a href="">Another nested menu.</a></li>
<li><a href="">Here's another submenu item.</a></li>
</ul>
</li>
<li><a href="">Here's another submenu item.</a></li>
<li><a href="">Here's another submenu item.</a></li>
</ul>
</li>
<li><a href="">The End!</a></li>
</ul>
I took the modified CSS and created a second class and want to apply that class to the last two elements. Unfortunately, when I do this the menu is still only using the initial CSS class.
An example of what I am trying to accomplish follows:
<!--Default Class for the menu all elements drop to the right-->
<ul class="menulist" id="listMenuRoot">
<li><a href="">Home</a></li>
<li><a href="">Submenu</a>
<ul>
<li><a href="">Here's a submenu item.</a></li>
<li><a href="">Here's another submenu item.</a></li>
</ul>
</li>
<!--2nd Class for the menu elements should drop to the left-->
<li class="menuright"><a href="">Submenu 2</a>
<!--No matter where I apply the Class the main class is overriding it-->
<ul class="menuright">
<li><a href="">Nested menu 1</a>
<ul>
<li><a href="">Here's a submenu item.</a></li>
<li><a href="">Here's another submenu item.</a></li>
</ul>
</li>
<li><a href="">Nested menu 2</a>
<ul>
<li><a href="">Another nested menu.</a></li>
<li><a href="">Here's another submenu item.</a></li>
</ul>
</li>
<li><a href="">Here's another submenu item.</a></li>
<li><a href="">Here's another submenu item.</a></li>
</ul>
</li>
<li><a href="">The End!</a></li>
</ul>