I have created a menu with hover animation as described here.
How do I make sure the underline effect is the same width as the word (menu item) above it?
Also I want to add a vertical bar divider as described here. (Method 1)
I think I was not clear in my question. I was talking about the horizontal alignment of the divider bars. There is more room on the right. The horizontal alignment is not in the middle. I tried to resolve this problem with adjusting the .main-navigation .menu>li:not(:last-child):after but this does not help.
Is there another CCS technique to get divider bars in the menu? With the current technique I can’t get them aligned properly.