Adjusting nav on twenty ten theme question

Discussion in 'WordPress' started by KangBroke, Nov 9, 2011.

  1. #1
    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):
     
    KangBroke, Nov 9, 2011 IP
  2. Ahsanaveed

    Ahsanaveed Peon

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    just put this in your css file #menu li { padding-right: 10px; }
     
    Ahsanaveed, Nov 9, 2011 IP
  3. KangBroke

    KangBroke Notable Member

    Messages:
    1,026
    Likes Received:
    59
    Best Answers:
    4
    Trophy Points:
    265
    #3
    did not work, You can refresh and see
     
    KangBroke, Nov 9, 2011 IP
  4. Ahsanaveed

    Ahsanaveed Peon

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Try this #menu-head li { padding-right: 10px; }
     
    Ahsanaveed, Nov 9, 2011 IP
  5. KangBroke

    KangBroke Notable Member

    Messages:
    1,026
    Likes Received:
    59
    Best Answers:
    4
    Trophy Points:
    265
    #5
    no thats not it,
    Untitled-1.jpg
    this gap wont adjust seems like no matter what
     
    KangBroke, Nov 9, 2011 IP
  6. Ahsanaveed

    Ahsanaveed Peon

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    It's an hit and trial method to correct this issue.
     
    Ahsanaveed, Nov 9, 2011 IP
  7. benny306

    benny306 Active Member

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    51
    #7
    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;
     
    benny306, Nov 9, 2011 IP