Add CSS 3 Powered Ribbon Hover Menu In Blogger
Hi friends, in my previous posts, I shared so many codes to create menubar in blogger blogs. This time also, I am providing you another CSS3 powered horizontal menubar which is not having any javascript or images, it's pure CSS 3 powered and will not effect your site's loading speed. So, let's start:
> Login to your blogger account.
> From your dashboard, navigate to Layout > Add A Gadget > Add HTML/Javascript Gadget.
> In the content box, copy and paste this code:
> Open your blog and see the menubar.
Note: To edit the menubar, simply replace "#" with your target link and edit the menu text as you wish.
Keep visiting for more tips and tricks.
> Login to your blogger account.
> From your dashboard, navigate to Layout > Add A Gadget > Add HTML/Javascript Gadget.
> In the content box, copy and paste this code:
<style>
.tng-ribmenu span {
background:#A81B6A;
display:inline-block;
font-family:verdana;
line-height:3em;
padding:0 1em;
margin-top:0.5em;
position:relative;
-webkit-transition: background-color 0.2s, margin-top 0.2s; /* Saf3.2+, Chrome */
-moz-transition: background-color 0.2s, margin-top 0.2s; /* FF4+ */
-ms-transition: background-color 0.2s, margin-top 0.2s; /* IE10 */
-o-transition: background-color 0.2s, margin-top 0.2s; /* Opera 10.5+ */
transition: background-color 0.2s, margin-top 0.2s;
}
.tng-ribmenu a:hover span {
background:#FFD204;
margin-top:0;
}
.tng-ribmenu span:before {
content: "";
position:absolute;
top:3em;
left:0;
border-right:0.5em solid #9B8651;
border-bottom:0.5em solid #fff;
}
.tng-ribmenu span:after {
content: "";
position:absolute;
top:3em;
right:0;
border-left:0.5em solid #9B8651;
border-bottom:0.5em solid #fff;
}
.tng-ribmenu a:link, .tng-ribmenu a:visited {
color:#000;
text-decoration:none;
float:left;
height:3.5em;
overflow:hidden;
}
.tng-ribmenu:after, .tng-ribmenu:before {
margin-top:0.5em;
content: "";
float:left;
border: 1.5em solid #A81B6A;
}
.tng-ribmenu:after {
border-right-color:transparent;
}
.tng-ribmenu:before {
border-left-color:transparent;
}
</style>
<div class='tng-ribmenu'>
<a href='#'><span>Home</span></a>
<a href='#'><span>Widget</span></a>
<a href='#'><span>Hacks</span></a>
<a href='#'><span>jQuery</span></a>
<a href='#'><span>Sitemap</span></a>
<a href='#'><span>News</span></a>
<a href='#'><span>FAQ's</span></a>
</div>
> Now save your gadget and arrange at the required place..tng-ribmenu span {
background:#A81B6A;
display:inline-block;
font-family:verdana;
line-height:3em;
padding:0 1em;
margin-top:0.5em;
position:relative;
-webkit-transition: background-color 0.2s, margin-top 0.2s; /* Saf3.2+, Chrome */
-moz-transition: background-color 0.2s, margin-top 0.2s; /* FF4+ */
-ms-transition: background-color 0.2s, margin-top 0.2s; /* IE10 */
-o-transition: background-color 0.2s, margin-top 0.2s; /* Opera 10.5+ */
transition: background-color 0.2s, margin-top 0.2s;
}
.tng-ribmenu a:hover span {
background:#FFD204;
margin-top:0;
}
.tng-ribmenu span:before {
content: "";
position:absolute;
top:3em;
left:0;
border-right:0.5em solid #9B8651;
border-bottom:0.5em solid #fff;
}
.tng-ribmenu span:after {
content: "";
position:absolute;
top:3em;
right:0;
border-left:0.5em solid #9B8651;
border-bottom:0.5em solid #fff;
}
.tng-ribmenu a:link, .tng-ribmenu a:visited {
color:#000;
text-decoration:none;
float:left;
height:3.5em;
overflow:hidden;
}
.tng-ribmenu:after, .tng-ribmenu:before {
margin-top:0.5em;
content: "";
float:left;
border: 1.5em solid #A81B6A;
}
.tng-ribmenu:after {
border-right-color:transparent;
}
.tng-ribmenu:before {
border-left-color:transparent;
}
</style>
<div class='tng-ribmenu'>
<a href='#'><span>Home</span></a>
<a href='#'><span>Widget</span></a>
<a href='#'><span>Hacks</span></a>
<a href='#'><span>jQuery</span></a>
<a href='#'><span>Sitemap</span></a>
<a href='#'><span>News</span></a>
<a href='#'><span>FAQ's</span></a>
</div>
> Open your blog and see the menubar.
Note: To edit the menubar, simply replace "#" with your target link and edit the menu text as you wish.
Keep visiting for more tips and tricks.
0 comments:
Post a Comment