Monday, November 5, 2012

CSS3 Sub Text Menubar With Nice Hover Effect For Blogger

In this post im gonna explain how to add CSS3 menu-bar with sub text for blogger You can make your blog attractive by adding menu-bar. Im using CSS and HTML for this tutorial. you can get my earlier menu bar post collection  by clicking 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 */

#menu2 ul {
    list-style:none;
    font-family: "Trebuchet MS", sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: bold;
    letter-spacing: -1px;
    line-height: 1.2em;
    border:1px solid #000000;
    border-left:none;
    float:left;
    clear:both;
    margin:20px;
    border:1px dashed #000000;
    margin-left:20px;
}
#menu2 ul li{
    float:left;
}
#menu2 ul li a{
    display:block;
    text-decoration:none;
    background-color:#f0f0f0;
    padding:5px 10px;
    color:#666;
    width:140px;
}
#menu2 ul li a span{
    display:block;
    text-align:center;
    
}
#menu2 ul li a span.title{
}
#menu2 ul li a:hover span.title{
    color:#00a8ff;
}
#menu2 ul li a span.text{
    font-size:12px;
    font-style:italic;
    padding:0px 5px;
    border:1px solid #f0f0f0;
}

#menu2 ul li a:hover span.text{
    border:1px inset #000000;
    background-color:#00a8ff;
}
   

7. Go to blogger and click Layout

8. Click Add Gadget and select 'HTML/Javascript

9. Paste below code.

<div id="menu2">
            <ul>
                <li><a href="">
                        <span class="title">About</span>
                        <span class="text">Who we are</span>
                    </a>
                </li>
                <li><a href="">
                        <span class="title">Portfolio</span>
                        <span class="text">What we do</span>
                    </a>
                </li>
                <li><a href="">
                        <span class="title">Blog</span>
                        <span class="text">What we talk about</span>
                    </a>
                </li>
                <li><a href="">
                        <span class="title">Contact</span>
                        <span class="text">How to get in touch</span>
                    </a>
                </li>
                 <li><a href="http://www.bloggertrix.com">
                        <span class="title">AddThis</span>
                        <span class="text">Add This to blogger</span>
                    </a>
                </li>              
            </ul>
        </div>

10. Now save your HTML/Javascript'.

    You are done...

0 comments:

Post a Comment