This is some CSS to center a dropdown menu
nav ul ul {
display:none;
position: absolute;
top: 100%; /*sets the top edge of the element above/below top edge of nearest ancestor*/
left:50%;
transform:translateX(-50%);
}
/* https://css-tricks.com/forums/topic/center-align-drop-down-list-inside-a-drop-down-menu/ */