Monday, March 4, 2013

CSS3 Shadow Block Menu For Blogger

In this  tutorial im  gonna   explain how to add block menu  navigation  bar  for  blogger. So, in this 
using  multiple  shadows  for  hover  effect with two layers.  This  effect  work fine  with  every   modern internet browsers. Im  using  Css3 and  HTML, Just check out demo.Its easy to add to blogger get my all  menu bar here


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 */

.shadowblockmenu{
font-weight: bold;
font-size: 85%;
width: 687px;
margin:0 auto;
}
.shadowblockmenu ul{
border: 1px solid #BBB;
border-width: 1px 0;
padding: 0;
margin: 0;
overflow: hidden;
}
.shadowblockmenu ul li{
display: inline;
margin:0;
padding:0;
}
.shadowblockmenu ul li a{
display:block;
float:left;
text-transform: uppercase;
color: #494949;
padding: 8px 15px 8px 9px;
margin: 0;
text-decoration: none;
border-right: 1px solid #BBB; 
-moz-box-shadow: inset -7px 0 10px rgba(114,114,114, 0.4); (114,114,114, 0.4) specifies rgb values, last specifies opacity */
-webkit-box-shadow: inset -7px 0 10px rgba(114,114,114, 0.4);
box-shadow: inset -7px 0 10px rgba(114,114,114, 0.4);
text-shadow: 0 -1px 1px #cfcfcf; 
-moz-transition: all 0.2s ease-in-out;
-webkit-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
-ms-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
.shadowblockmenu li:nth-of-type(1) a{
border-left: 1px solid #BBB;
padding-left:25px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK48X153o4O5CbWIJzqH58oZUEKDOeLIdzo_JJlpwwCOYvsa2VbsfLaXYEubj3qXqjWxIvyb3Cbx9M4qrDNltvEgvYt-Joo8RYIym6NvSaxCrbShhXnknZspse2Ss4CfPggMGP8aJXGU8/s1600/bt_home.png) 1px center no-repeat; 
}
.shadowblockmenu li:nth-of-type(2) a{ 
padding-left:25px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEid3zFO4oXbWcKhpg0K6y724-Wz3jEoQewkpwIX2ef85I-f0VE29urxnma04JsW9cViaviAoSFmNZBbPl5fGhgRqoaDxyeeHOMqC7rijEN9KiA_p5MsHI49-ZbyQXcSGvwdrusmf0GBF14/s1600/bt_bulb.png) 1px center no-repeat; 
}
.shadowblockmenu li:nth-of-type(3) a{ 
padding-left:25px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjS8KncNOeuxUQsqhXut9MoORmRyH9ZPZ3Y-ZUejk8f_nCYewNfRBIUMBxY_C6-HmBbWyLTpgrnw07OS3VDfnyHjmk-vQN-wDincw5yV_2Pz6NfOrbUWDy3eG5wdI5rhheOajQlqJVOHXI/s1600/bt_database_add.png) 1px center no-repeat; 
}
.shadowblockmenu li:nth-of-type(4) a{ 
padding-left:25px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZP0RHZh8mkiqMa7CjWiMbWZr4QiV4_wV7IbEcyuIG_tWZZWZtopHUVM8mh2xjBBuRSFbJ3cbHD9V692CFCKDpKtumqwPrQRlNjz-lV0Vn9X1LGLfCvdjtKFq8vub8WXvsvupGUN0pEdo/s1600/bt_films.png) 1px center no-repeat; 
}
.shadowblockmenu li:nth-of-type(5) a{ 
padding-left:25px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDN-wTZnnith0P8Tm30SVEt_biwKQeZ4SrGvbWACotf_SHeY43k6kb6E5kTa2oxf75Fh39Gtazfo4-WtzrLW5us7gWLODPYK_TMok9xPeIncLoXw3-4MDl1xx5vXf2o5nU5tD5j0dwXLg/s1600/bt_mobile-phone.png) 1px center no-repeat; 
}
.shadowblockmenu li:nth-of-type(6) a{ 
padding-left:25px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjU7xMnsFy-ZBnLTNqae24YSxxGuhDXEKXHJwUJlvhjn6yMDDbQ-pDCjFt2_c0avVpf9z6ve_ULhMsh39lycX3mrFfZhOMr3svDsHi5l6aGemDu9-37wXpziZjjxLKH0jv_QRCRAaGbL7I/s1600/Bt_Help_Circle_Blue.png) 1px center no-repeat; 
}
.shadowblockmenu ul li a:hover{
color: black;
-moz-box-shadow: inset -7px 0 10px rgba(60,162,221, 0.4), inset 0 0 12px rgba(60,162,221, 0.6);
-webkit-box-shadow: inset -7px 0 10px rgba(60,162,221, 0.4), inset 0 0 12px rgba(60,162,221, 0.6);
box-shadow: inset -7px 0 10px rgba(60,162,221, 0.4), inset 0 0 12px rgba(60,162,221, 0.6);
}

7. Go to blogger and click Layout

8. Click Add Gadget and select 'HTML/Javascript

9. Paste below code.

<div class="shadowblockmenu">
<ul>
<li><a href="#">Home page</a></li>
<li><a href="#">CSS Library</a></li>
<li><a href="#">Database</a></li>
<li><a href="#">Blog Videos</a></li>
<li><a href="#">Mobile App</a></li>
<li><a href="http://www.bloggertrix.com/">Get Help</a></li>
</ul>
</div>

Replace # with your links.

10. Now save your HTML/Javascript'.

    You are done...

5 comments: