I am currently working with WordPress and have created a menu using a list structure.
Here is an example of how it looks:
<ul>
<li>Home</li>
<li>About</li>
<li>ParentItem
<ul> <--- The height does not adjust to fit its children
<li>ChildMenuItem 1</li>
<li>ChildMenuItem 2</li>
</ul>
</li>
<li>Services</li>
</ul>
The issue I am facing is that the ParentItem does not expand to cover all its children with its background and border. I have tried various solutions but the only way I can get it to cover is by setting a fixed height, which is not ideal.