If you know that the last element of your navigation menu is ahead of time (which means that your menu is not dynamically built), you can simply specify the last <ul> own class.
Try the following:
<ul><li>Home</li> <li>About</li> <li> Portfolio <ul> <li>Web Design</li> <li>Web Development</li> <li>Illustrations</li> </ul> </li> <li>Blog</li> <li>Contact <ul class="listRight"> <li>Web Design</li> <li>Web Development</li> <li>Illustrations</li> </ul></li> </ul>
Then add the "listRight" class to your css:
.listRight { left: auto !important; right: 0 !important; }
See this JSFiddle solution for a working example.
Jax
source share