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("http://3.bp.blogspot.com/-i7zTXd899Bw/UVgTpEO2sPI/AAAAAAAAHVE/wnNctZv9WNw/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(http://1.bp.blogspot.com/-kY9-AMYcoYI/UVgTpKhu69I/AAAAAAAAHVM/CShHoSnwXNA/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(http://2.bp.blogspot.com/-xXjcCo34I-Y/UVgTqqdw9EI/AAAAAAAAHVg/rb_Zs8A0Xfw/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(http://2.bp.blogspot.com/-yiEpRpifdPo/UVgTqegilzI/AAAAAAAAHVc/pM5Xl5wbqGg/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: