Sunday, March 31, 2013

Attractive Simple CSS3 Navigation for Blogger

Navigation bar  helps  to make your blogger attractive.So, in this post im gonna explain how  to add attractive simple Css3 navigation bar for your blogger. Actually this is simple menu.Its  include nice  hover colors.This is easy to customize who are good at HTML and CSS. You can take look in demo page.

Attractive+Simple+CSS3+NavigationDemo

How to add Attractive Simple CSS3 Navigation

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

Select-template
  
3. Find this tag by using Ctrl+F    ]]></b:skin>

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

/* The CSS3 Code for the menu starts here bloggertrix.com */
#btrixsimplemenu{
 clear:both;
 margin:5px auto;
 border:0px solid #000;
 font-size:12px;
 font-family: verdana;
 height: 236px;
}

ul#li{color:black;}
ul#level-one{
 width:700px;
 height: 36px;
 position: relative;
 list-style: none;
 line-height:36px;
 background:#f0f0f0 url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjO97H-swr-rkSM3HywC5ygJCtxyvspKeQSZD2py9kRTE2SHwSah5PoU3P0QBCIfKMUltN2HAVShTKrtEQDP8YQmE9g6b0IIuLICqng59uL8cv4VpRe6YnwDf0_0vQvowaB44cQSD6Fgug/s1600/btrix_menu-back.png") repeat-x bottom left;/* for non-css3 browsers */
 background: -webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(#f0f0f0)); /* for webkit browsers */
 background: -moz-linear-gradient(top,  #FFFFFF,  #f0f0f0); /* for firefox 3.6+ */ 
 border:solid 1px #4d4d4d;
-moz-border-radius-topleft: 11px;-moz-border-radius-topright:11px;-moz-border-radius-bottomleft:11px;-moz-border-radius-bottomright:10px;-webkit-border-top-left-radius:11px;-webkit-border-top-right-radius:11px;-webkit-border-bottom-left-radius:11px;-webkit-border-bottom-right-radius:10px;border-top-left-radius:11px;
border-top-right-radius:11px;
border-bottom-left-radius:11px;
border-bottom-right-radius:10px;
}
ul#level-one li{
 width:80px;
 float: left;
 font-weight: bold;
 font-family: Arial;
 padding-left: 12px;
 border:solid 0px #000000;-moz-border-radius-topleft: 11px;-moz-border-radius-topright:11px;
-moz-border-radius-bottomleft:11px;-moz-border-radius-bottomright:10px;-webkit-border-top-left-radius:11px;-webkit-border-top-right-radius:11px;-webkit-border-bottom-left-radius:11px;-webkit-border-bottom-right-radius:10px;
border-top-left-radius:11px;
border-top-right-radius:11px;
border-bottom-left-radius:11px;
border-bottom-right-radius:10px;
}
ul#level-one li:hover{
 background:#FFA500;
 border:solid 0px #000000;
-moz-border-radius-topleft: 11px;-moz-border-radius-topright:11px;-moz-border-radius-bottomleft:11px;-moz-border-radius-bottomright:10px;-webkit-border-top-left-radius:11px;-webkit-border-top-right-radius:11px;-webkit-border-bottom-left-radius:11px;-webkit-border-bottom-right-radius:10px;
border-top-left-radius:11px;
border-top-right-radius:11px;
border-bottom-left-radius:11px;
border-bottom-right-radius:10px;
}
ul#level-two,ul#level-three,ul#level-four{
 list-style: none;
 background:#FFA500 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGc9fidYElhIZGRU25kjXF1LnHaBAKgn4uklw1NY_R6uO43f6saIcG6VdfG6smWFD7SBuVg0zQd4U20yMPmAIujAlNmab34CM9kPDiJ9iEKdP-9gZ5VasCC7-tcXM3eIAFuFIznPUmSNo/s1600/btrix_menu-grad.png) repeat-x bottom left; /* for non-css3 browsers */
 background: -webkit-gradient(linear, left top, left bottom, from(#FFA500), to(#FF4500)); /* for webkit browsers */
 background: -moz-linear-gradient(top, #FFA500, #FF4500); /* for firefox 3.6+ */ 
 display:none;
 position:absolute;
 top:36px;
 padding:0;
 width:200px;
 height:240px;
 border:0px solid red;
}
ul#level-two li,ul#level-three li,ul#level-four li{
 width:196px;
 padding-left:4px ;
 line-height: 30px;
}
ul#level-two li:hover{
 background:#f0f0f0 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1dX15scIUMAB1DjwEja3lWs2NXPkO9wr7evRsavywQ8GaWaL6n0lkeuUin4T80f_4oAHuBcfxbxDg775xHGyGH9asVdmjYS8tm2DpTj2HXTKo4cEHGA0x1CTRQC2L9DoLe0yoiwbJL0Q/s1600/btrix_menu-li.png) repeat-x bottom left;/* for non-css3 browsers */
 background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#c0c0c0)); /* for webkit browsers */
 background: -moz-linear-gradient(top,  #fff,  #c0c0c0); /* for firefox 3.6+ */ 
border:solid 0px #000000;
-moz-border-radius-topleft: 11px;-moz-border-radius-topright:11px;-moz-border-radius-bottomleft:11px;-moz-border-radius-bottomright:10px;-webkit-border-top-left-radius:11px;-webkit-border-top-right-radius:11px;-webkit-border-bottom-left-radius:11px;-webkit-border-bottom-right-radius:10px;
border-top-left-radius:11px;
border-top-right-radius:11px;
border-bottom-left-radius:11px;
border-bottom-right-radius:10px;
}
ul#level-one li:hover > ul#level-two,ul#level-one li:hover > ul#level-three,ul#level-one li:hover > ul#level-four {
 display: block;
}
a{
 width:200px;
 text-align: center;
 text-decoration: none;
 color:#000000;
}
ul#level-three li:hover{
 background: #00BFFF url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKb8L04JwD_N_TGELvvyYxEJhQVWQ2vr4OuMN3aZrHcn7NZxXPlx0QVtAlQ5oG7GTKf5i7gObDCyF7CEqedZZvyEIywfRelAWZmIMg2aI_KrqbwRLHuFZzYGOJaT9Upf4oWoTdU-6xj00/s1600/btrix_menu-li-blue.png) repeat-x bottom left;
 background: -webkit-gradient(linear, left top, left bottom, from(#00BFFF), to(#1E90FF)); /* for webkit browsers */
 background: -moz-linear-gradient(top, #00BFFF, #1E90FF); /* for firefox 3.6+ */ 
 border:solid 0px #000000;
-moz-border-radius-topleft: 11px;-moz-border-radius-topright:11px;-moz-border-radius-bottomleft:11px;-moz-border-radius-bottomright:10px;-webkit-border-top-left-radius:11px;-webkit-border-top-right-radius:11px;-webkit-border-bottom-left-radius:11px;-webkit-border-bottom-right-radius:10px;
border-top-left-radius:11px;
border-top-right-radius:11px;
border-bottom-left-radius:11px;
border-bottom-right-radius:10px;
}

5. Go to blogger and click Layout

6. Click Add Gadget and select 'HTML/Javascript

7. Paste below code.

<div id="btrixsimplemenu">
<ul id="level-one">
<li><a href="#">Home</a></li>
<li>Campaign 
 <ul id="level-two">
<li><a href="#">sub-Second</a></li>
<li><a href="#">sub-Second</a></li>
<li><a href="#">sub-Second</a></li>
<li><a href="#">sub-Second</a></li>
<li><a href="#">sub-Second</a></li>
<li><a href="#">sub-Second</a></li>
<li><a href="#">sub-Second</a></li>
<li><a href="#">sub-Second</a></li>
</ul>
</li>
<li>Download
 <ul id="level-three">
<li><a href="#">sub-Second</a></li>
<li><a href="#">sub-Second</a></li>
<li><a href="#">sub-Second</a></li>
<li><a href="#">sub-Second</a></li>
<li><a href="#">sub-Second</a></li>
<li><a href="#">sub-Second</a></li>
<li><a href="#">sub-Second</a></li>
<li><a href="#">sub-Second</a></li>
</ul>
</li>
<li>List
 <ul id="level-four">
<li><a href="#">sub-Second</a></li>
<li><a href="#">sub-Second</a></li>
<li><a href="#">sub-Second</a></li>
<li><a href="#">sub-Second</a></li>
<li><a href="#">sub-Second</a></li>
<li><a href="#">sub-Second</a></li>
<li><a href="#">sub-Second</a></li>
<li><a href="#">sub-Second</a></li>
</ul>
</li>
<li><a href="#">About</a></li>
<li><a href="#">Demo</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>

8. Now save your HTML/Javascript'.

    You are done...

1 comment: