Sign in

How can the secondary column of HTML navigation bar always stay on the left?

acemr edited in Thu, 26 Jan 2023

Code effect: http://jsrun.net/kUvKp/edit

Code in the link above, you can see the effect directly. I made the secondary menu move with the main menu, resulting in a blank area on the left. How to fix the secondary menu on the leftmost side instead of following the triangle pointer.

2 Replies
commented on Thu, 26 Jan 2023


position: absolute; left: 0

commented on Thu, 26 Jan 2023

Put. NAV nli:hover .xl And. NAV. NLI UL nli:hover .xl Add one in left:0 Try to see if it is the effect you want