Friday, October 26, 2012

CSS3 Slanted Vertical Menu For Blogger

Every websites / blogs using menu bars  for link their main pages.It  will more  helpful  for your visitors to track your main pages. So, why  don't  you  choose attractive menu bar for  your  blog.  Its helps to  make your blog attractive too.That,s why you have to choose best one for your blog.Today im gonna explain how to add animated vertical menu bar for your blog.You can get my all vertical here

HostIn15 Host Reviews
alt
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 */

ul.svertical{
width: 200px; /* width of menu */
overflow: auto;
background:white;/* background of menu */
margin: 0;
padding: 0;
padding-top: 7px; /* top padding */
list-style-type: none;
}

ul.svertical li{
text-align: right; /* right align menu links */
}
ul.svertical li a{
position: relative;
display: inline-block;
text-indent: 5px;
overflow: hidden;
background:#35BEFF; /* initial background color of links */
font: bold 16px Germand;
text-decoration: none;
padding: 5px;
margin-bottom: 7px; /* spacing between links */
color: black;
-moz-box-shadow: inset -7px 0 5px rgba(114,114,114, 0.8); /* inner right shadow added to each link */
-webkit-box-shadow: inset -7px 0 5px rgba(114,114,114, 0.8);
box-shadow: inset -7px 0 5px rgba(114,114,114, 0.8);
-moz-transition: all 0.2s ease-in-out; /* CSS3 transition of hover properties */
-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;
}
ul.svertical li a:hover{
padding-right: 30px; /* add right padding to expand link horizontally to the left */
color: black;
background: #0B55F1;
-moz-box-shadow: inset -3px 0 2px rgba(114,114,114, 0.8); /* contract inner right shadow */
-webkit-box-shadow: inset -3px 0 5px rgba(114,114,114, 0.8);
box-shadow: inset -3px 0 5px rgba(114,114,114, 0.8);
}
ul.svertical li a:before{ /* CSS generated content: slanted right edge */
content: "";
position: absolute;
left: 0;
top: 0;
border-style: solid;
border-width: 70px 0 0 20px; /* Play around with 1st and 4th value to change slant degree */
border-color: transparent transparent transparent white; /* change black to match the background color of the menu UL */
}

7. Go to blogger and click Layout

8. Click Add Gadget and select 'HTML/Javascript

9. Paste below code.

<ul class="svertical">
<li><a href="http://www.bloggertrix.com/">Blogger Trix</a></li>
<li><a href="http://www.bloggertrix.com/">CSS Examples</a></li>
<li><a href="http://www.bloggertrix.com/">JavaScript Codes</a></li>
<li><a href="http://www.bloggertrix.com/">Jquery Effects</a></li>
<li><a href="http://www.bloggertrix.com/">HTML Tips</a></li>
<li><a href="http://www.bloggertrix.com/">Coding Forums</a></li>
</ul>

10. Now save your HTML/Javascript'.

    You are done...

2 comments:

  1. I tried using this on test blog and I couldn't get this to work.

    ReplyDelete
  2. @Wanda
    What is your blog URL?
    Contact me via Contact Us page.

    ReplyDelete