Sunday, November 18, 2012

CSS Chocolate Style Menubar For Blogger

This post will  explain  about how  to add chocolate color  style menu bar for  your blog. This menu  bar include nice hover style  with sub menu.you can  try this menu  bar  for  your  blog. 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 */
#menu10 ul {
    list-style:none;
    font-family: Georgia, serif;
    font-size: 30px;
    letter-spacing: -3px;
    line-height: 1.2em;
    float:left;
    clear:both;
    margin:20px;
    
}
#menu10 ul li{
    float:left;
border:1px solid #5F3B2F;
}
#menu10 ul li a{
    display:block;
    text-decoration:none;
    
    background-color:#955542;
    width:170px;
    text-align:center;
}
#menu10 ul li a span{
    display:block;
}
#menu10 ul li a span.title{
    color:#fff;
    padding-bottom:5px;
}
#menu10 ul li a:hover{

}
#menu10 ul li a:hover span.title{
    font-family: Georgia, serif;
    font-size: 10px;
    font-style: normal;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 2em;
    color:#fff;
    border:1px dashed #fff;
    padding-bottom:3px;
    background-color:#AF6C57;
}
#menu10 ul li a span.text{
    padding:0px 5px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: normal;
    line-height: 1.4em;
    color:#fff;
    background-color:#5F3B2F;
    visibility:hidden;
    border-bottom:1px groove #AF6C57;
}
#menu10 ul li a:hover span.text{
    line-height: 3.4em;
    visibility:visible;
}
   

7. Go to blogger and click Layout

8. Click Add Gadget and select 'HTML/Javascript

9. Paste below code.

<div id="menu10">
            <ul>
                <li><a href="">
                        <span class="title">Home</span>
                        <span class="text">Who we are</span>
                    </a>
                </li>
                <li><a href="">
                        <span class="title">Download</span>
                        <span class="text">What we do</span>
                    </a>
                </li>
                <li><a href="">
                        <span class="title">About</span>
                        <span class="text">What we talk about</span>
                    </a>
                </li>
                <li><a href="http://www.bloggertrix.com/">
                        <span class="title">Contact</span>
                        <span class="text">How to get in touch</span>
                    </a>
                </li>
            </ul>
        </div>

10. Now save your HTML/Javascript'.

    You are done...

7 comments:

  1. nice one. thanks you

    ReplyDelete
  2. can you make tutorial for making related post like you :)

    ReplyDelete
  3. @Limit Post
    Sure i will. keep in touch..

    ReplyDelete
  4. Your website seem very yummy!!! I love chocolate!
    New Html Tutorial
    your blog is good! I'll visit again :)
    God Bless You

    ReplyDelete
  5. Any chance of adding sub-menus to this? I love the style but cant figure it out!

    ReplyDelete