Wednesday, January 2, 2013

How To Add Apple Style Menubar For Blogger

In  this  post  im  gonna  explain,  how  to add Apple  style menu  bar for  your  blog. This is
similar menu bar in apple.com site.Its include search  box  too. hope  this  will  help  who are
searching menu bar. Im  using Css and  HTML for this menu bar.You can get my all  menubar here

Add+Apple+Style+Menubar+For+Blogger
Demo

1. Log in to blogger account and Click drop down.
blog-post-option
2. Now select "Template" Like Below.

Select-template

3. Now you can see Live on blog, Click EDIT HTML Button"

4. Now click Proceed button.
   
5. Find this tag by using Ctrl+F    ]]></b:skin>

6. Paste below code Before ]]></b:skin> tag

/* The CSS Code for the menu starts here bloggertrix.com */

#appleNav { margin:40px 0; list-style:none;
font-family: "Lucida Sans Unicode", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif; letter-spacing:-0.5px; font-size:13px;
   
    text-shadow: 0 -1px 3px #202020;
    width:980px; height:34px;
    -moz-border-radius:4px;
    -webkit-border-radius:4px;
    border-radius:4px;
    -moz-box-shadow: 0px 3px 3px #cecece;
    -webkit-box-shadow: 0px 3px 3px #cecece;
    box-shadow: 0 3px 4px #8b8b8b;
}

#appleNav li { display:block; float:left; border-right:1px solid #5d5d5d; border-left:1px solid #929292; width:105px; height:34px; border-bottom:1px solid #575757; border-top:1px solid #797979;
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #787878), color-stop(0.5, #5E5E5E), color-stop(0.51, #707070), color-stop(1, #838383));background-image: -moz-linear-gradient(center bottom, #787878 0%, #5E5E5E 50%, #707070 51%, #838383 100%);
    background-color:#5f5f5f; /* Fallback */
}
#appleNav li:not(:last-child):hover {
    background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #3F3F3F), color-stop(0.5, #383838), color-stop(0.51, #434343), color-stop(1, #555555));
    background-image: -moz-linear-gradient(center bottom, #3F3F3F 0%, #383838 50%, #434343 51%, #555555 100% );
    background-color:#383838; /* Fallback */
    -moz-box-shadow: inset 0 0 5px 5px #535353;
    -webkit-box-shadow: inset 0 0 5px 5px #535353;
    box-shadow: inset 0 0 5px 5px #535353;
}
#appleNav li:not(:last-child):active {
    background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #3F3F3F), color-stop(0.5, #383838), color-stop(0.51, #434343), color-stop(1, #555555));
    background-image: -moz-linear-gradient(center bottom, #3F3F3F 0%, #383838 50%, #434343 51%, #555555 100% );
    background-color:#383838; /* Fallback */
    
    -moz-box-shadow: inset 0 1px 2px 2px #000;
    -webkit-box-shadow: inset 0 1px 2px 2px #000;
    box-shadow: inset 0 1px 2px 2px #000;
}
#appleNav li a { color:white; text-decoration:none; text-align:center; display:block; line-height:34px; outline:none; }

#appleNav form input { width:76px; height:20px; margin-left:9px; margin-top:8px; border:none; padding-left:20px; padding-right:10px; color:#eee;

    -moz-border-radius:10px;
    -webkit-border-radius:10px;
    border-radius:10px;

    background-image: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgelxtB2OLyBjGt2wyX7c0YluieOeg2S8HIVX99tC-GpkJ1BXra2mxRhyphenhyphenJOhXMj55sgG-vg3Ihyphenhyphenp8z1pejxwyxGqwn-LAQWdC68Am1dszF7vmiEra4XyRFFW8EAphNlI99fKixAoQBAZsHn/s1600/btrix_magnifier.png"), -webkit-gradient(linear, left bottom, left top, color-stop(0, #747474), color-stop(0.5, #6E6E6E), color-stop(0.51, #7E7E7E), color-stop(1, #8D8D8D));
    background-image: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgelxtB2OLyBjGt2wyX7c0YluieOeg2S8HIVX99tC-GpkJ1BXra2mxRhyphenhyphenJOhXMj55sgG-vg3Ihyphenhyphenp8z1pejxwyxGqwn-LAQWdC68Am1dszF7vmiEra4XyRFFW8EAphNlI99fKixAoQBAZsHn/s1600/btrix_magnifier.png"), -moz-linear-gradient(center bottom, #747474 0%, #6E6E6E 50%, #7E7E7E 51%, #8D8D8D 100%);
    background-repeat: no-repeat;
    background-color:#6E6E6E; /* Fallback */
    -moz-box-shadow: inset 0 2px 1px 1px #363636;
    -webkit-box-shadow: inset 0 2px 1px 1px #363636;
    box-shadow: inset 0 2px 1px 1px #363636;
}
#appleNav li:first-child {
    -moz-border-radius:4px 0 0 4px;
    -webkit-border-radius:4px 0 0 4px;
    border-radius:4px 0 0 4px;    
    border-left:none;
}
#appleNav li:first-child a img {
   vertical-align:middle; margin-top:-2px;
}
#appleNav li:last-child {
    -moz-border-radius:0 4px 4px 0;
    -webkit-border-radius:0 4px 4px 0;
    border-radius:0 4px 4px 0;
    border-right:none;
    width:124px;
}
/* Fade in animation (Webkit only) */
@-webkit-keyframes showMenu {
    from { opacity: 0; top:-20px; }
    to   { opacity: 1; }
}
#appleNav {
     -webkit-animation: showMenu 1s; position:relative;
}​

7. Go to blogger and click Layout

8. Click Add Gadget and select 'HTML/Javascript

9. Paste below code.

 <nav>
<ul id="appleNav">
   <li><a href="http://www.bloggertrix.com/" title="Apple"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9CJeuzmD8prxTkFr4nfELfuDqtngypiqHt_wV-c7lAZMIyNn4efnrqffVm8xCanSbdh9tQ9zX8NUPvLI2l-uRelbkItoUIiEy6SjRsXnyhiiXeGEcZdtr1XAfcC3D6FK-c9xI0-btW9vv/s1600/btrix_logo.png" alt="Apple Logo" /></a></li>
   <li><a href="#" title="Store">Store</a></li>
   <li><a href="#" title="Mac">Mac</a></li>
   <li><a href="#" title="iPod">iPod</a></li>
   <li><a href="#" title="iPhone">iPhone</a></li>
   <li><a href="#" title="iPad">iPad</a></li>
   <li><a href="#" title="iTunes">iTunes</a></li>
   <li><a href="#" title="Support">Support</a></li>
   <li>
        <form>
        <input type="text" />
        </form>
   </li>
</ul>
</nav>​
Replace # with your links.

10. Now save your HTML/Javascript'.

    You are done...

4 comments:

  1. Hmmmm hey dear its a nice menu well i will surely post this on my website i will give credit to your site but i wanna point out a huge mistake in your code that will make this navigation not working in anyone's blog, well you just forgot to place < in front of ul so kindly update your post, and i why there is extra white space in front apple logo please fix that too.

    ReplyDelete
    Replies
    1. Thanks you very much for remind me. Code and demo already fixed.

      Delete
  2. The menubar is great. It will be all the more better if you can make a functional demo for all the e.g. as this will help all to see the demo before one goes for conversion. Regards

    ReplyDelete