I have a navigation on my web page taken from Chris's Magic Line Navigation and the list items should have (but they don't accurately have, read on to know) a sort of underline image on the current item (
and when a user hovers over any anchor of list item in the navigation, the line animates itself towards the hovered anchor. The problem is that when the current menu item is clicked on, the line gets settled below the current menu item but the line's position from left is not what it should be. The image below will illustrate what i mean.
like this image
and when a user hovers over any anchor of list item in the navigation, the line animates itself towards the hovered anchor. The problem is that when the current menu item is clicked on, the line gets settled below the current menu item but the line's position from left is not what it should be. The image below will illustrate what i mean.
This image
I am using the following code for this purpose:
Following is my CSS for the #magic-nav
Copy code
How do i fix this? If you people need more information like css of navigation list, anchors, etc... please let me know.