I am currently working on a navigation menu where any menu item doesn't fit onto available space get appended onto a hidden unordered list(ul) which can be accessed through a toggle button. What I would like to achieve is to display Group-1, Group-2...as inline-block without affecting css of child elements.I am trying to use below css;
.hidden-link{ display:inline-block; } However when I use this line it changes all children element's property to show in a row rather that in a table format. I have tried jquery as well but no win.
$(document).ready(function(){ $("ul.hidden-links").children().css("display","inline-block"); }); e.g
<div class="container"> <ul class='hidden-links hidden'> <li>Group1 <ul class ="flash"> <li>item-1</li> <li>item-1</li> <li>item-1</li> </ul> </li> <li>Group2 <ul class ="flash"> <li>item-1</li> <li>item-1</li> <li>item-1</li> </ul> </li> <li>Group3 <ul class ="flash"> <li>item-1</li> <li>item-1</li> <li>item-1</li> </ul> </li> </ul> </div>
liin root oful.