Width of parent nodes in nested list with relative positionning

Hi guys

I have a two level nested list that I am using for a horizontal dropdown menu. Both using relative positionning.

My problem is, the parent items getting the same width as that of the child list.

How can I make them independent, ideally I want the parent (top level) menu nodes to have their width adjusted to the width of its text.

Thanks for any help.

Do you have example code? Maybe a jsfiddle or codepen? Or a live website?

Hi thanks Ryan. I solved it by using absolute positioning to the child list :slight_smile:

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.