Submenu Not Positioning Exactly Side-by-side
I found an issue with .sub_menu code left:-; and transform:translateX(-%);,So I changed position to relative and re-positioned with the two codes above, It seemed to work but now t
Solution 1:
From what I understand at taking a quick look is the sub.menu
s are odd. They currently have the style position: absolute
, and that would make them all align in the same exact place. As you can see you are doing that here:
.sub_menu {
display:none;
position:absolute;
top:-37%;
left:-47%;
transform:translateX(-20%);
width:auto;
white-space:nowrap;
}
So instead a fix would most likely be using position: relative
, and then aligning them from there. Also when working with a sub menu, it would help to have an ID on each element to align it correctly (Especially when aligning them vertically and horizontally).
Post a Comment for "Submenu Not Positioning Exactly Side-by-side"