css - Center within navigation -


i can't seem figure out how allow absolute centered logo surrounded navigation links (3 on each side), , navigation fall below logo upon resize seen here: http://testsite.brentthelendesign.com/. apologize in advance if answered elsewhere. appreciated!

here's code:

logo css

h1.logo {     float: none;     left: 50%;     margin-left: -80px;     text-align: center; }  h1.logo {     background: url("images/logo.png") no-repeat scroll 0 0 transparent;     display: block;     float: none;     height: 127px;     text-align: center;     text-indent: -9999px;     width: 181px; }  .abs {     position: absolute; } 

navigation css

.nav {     position: relative; } #navigation ul li, #navigation ul li {     border: medium none !important;     color: #3c3f40;     display: block;     float: right;     font-family: 'fjord one',"times new roman",times,serif;     font-weight: normal;     margin: 42px 0 130px !important;     padding: 15px 25px;     position: relative;     text-align: center !important;     text-decoration: none;     text-transform: uppercase; } #navigation ul li:hover a, #navigation ul li a:hover {     color: #d9a13b; } #navigation ul li:hover li {     color: #d9a13b;     font-weight: normal; } #navigation ul li.active {     color: #d9a13b; } #navigation ul.sub-menu {  } #navigation ul.sub-menu li {     border: medium none; } #navigation ul.sub-menu li {     background: none repeat scroll 0 0 transparent;     border-bottom: medium none;     border-radius: 0 0 0 0;     height: 32px;     line-height: 32px;     min-width: 210px;     padding: 5px 0 5px 8px;     position: static; } #navigation ul.sub-menu li a:hover {     border-bottom: medium none; } 

the html:

<header class="sixteen columns">     <nav>      <h1 class="logo abs">     <a href="/">bound design</a>     </h1>      <div id="navigation" class="row sixteen columns">         <div class="menu-header">              <ul id="menu-primary-menu" class="menu sf-js-enabled">                  <li id="menu-item-40" class="menu-item menu-item-type-post_type menu-item-                object-page current-menu-item page_item page-item-4 current_page_item menu-item-40 active">                 <a href="http://testsite.brentthelendesign.com/">home</a>                 </li>                 <li id="menu-item-41" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-41">                 <a href="http://testsite.brentthelendesign.com/category/tattoos/">tattoos</a>                 </li>                 <li id="menu-item-42" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-42">                 <a href="http://testsite.brentthelendesign.com/category/piercings/">piercings</a>                 </li>                 <li id="menu-item-60" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-60">                 <a href="http://testsite.brentthelendesign.com/aftercare/">aftercare</a>                 </li>                 <li id="menu-item-58" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-58">                  <a href="http://testsite.brentthelendesign.com/category/news/">news</a>                 </li>                 <li id="menu-item-59" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-59">                 <a href="http://testsite.brentthelendesign.com/contact/">contact</a>                 </li>            </ul>         </div>      </div>    </nav> </header> 

just add:

#navigation ul li:nth-child(3) {   margin-right: 213px!important; } 

to layout.css , take care of logo issue.

also:

#navigation ul li, #navigation ul li { 15px 0 26px 0 !important; } 

will rid of gap between navigation , 'welcome'


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -