I had previously asked a question that I need further assistance with: Fitting a <ul>'s width to accommodate the menu items
Is there a way to use jQuery to adjust the width of each <ul>
within a specific parent <ul>
so that the <li>
items do not overflow? The structure of the menu is similar to this:
<ul id="menu">
<li>
<a href="javascript:;">Menu 1</a>
<ul>
<li><a href="javascript:;">Item 1<a></li>
<li>
<a href="javascript:;">Subitem 1</a>
<ul>
<li><a href="javascript:;">Subsubitem 1</a></li>
</ul>
</li>
</ul>
</li>
</ul>
If the width of the <ul>
is not adjusted properly, it can cause layout issues like the one shown in this image:
https://i.sstatic.net/zmwx8.jpg
You can visit the website I'm working on here for more details on the CSS and overall site structure.