How do you adjust the margin, If you click this link and mouseover the nav, It is to the right, I am trying to get the hover to center over each button, http://eddieruble.com/ /* =Menu -------------------------------------------------------------- */ #access { display: inline-block; float: left; margin: 1 2; } #access .menu-header, div.menu { font-size: 11px; margin-left: 12px; } #access .menu-header ul, div.menu ul { list-style: none; margin: 5px; } #access .menu-header li, div.menu li { float: left; position: relative; } #access a { color: #aaa; display: block; line-height: 38px; text-decoration: none; } #access ul ul { box-shadow: 0px 3px 3px rgba(0,0,0,0.2); -moz-box-shadow: 0px 3px 3px rgba(0,0,0,0.2); -webkit-box-shadow: 0px 3px 3px rgba(0,0,0,0.2); display: none; position: absolute; top: 38px; right: 1; width: 180px; z-index: 99999; } #access ul ul li { min-width: 180px; } #access ul ul ul { left: 100%; top: 0; } #access ul ul a { line-height: 1em; padding: 10px; width: 160px; height: auto; } #access li:hover > a, #access ul ul :hover > a { background: #333; color: #2f48bd; left: 12px; } #access ul li:hover > ul { display: inline-block; } #access ul li.current_page_item > a, #access ul li.current-menu-ancestor > a, #access ul li.current-menu-item > a, #access ul li.current-menu-parent > a { color: #2f48bd; display: inline-block; } * html #access ul li.current_page_item a, * html #access ul li.current-menu-ancestor a, * html #access ul li.current-menu-item a, * html #access ul li.current-menu-parent a, * html #access ul li a:hover { color: #2f48bd; display: inline-block; } Code (markup):
When I inspect the element this is the css I see: ul#menu-head li > a, ul#menu-head li:hover > a { background-repeat: no-repeat; background-position: 5px center; padding-left: 23px; } Would changing the padding not fix it? padding-left: 11px; padding-right: 11px;