How to add Floating Dropdown Menu Bar using HTML: Adding floating widgets like menu bar, social
icons and many more are very popular in these days. If you add floating widgets
in your website visitor like this.There are many widgets which is helpful for
your blog or website. The most important widgets is Menu bar. In this post I
tell you how you can add drop down menu
bar in your site. Drop down menu is very useful for your blog or website.
Suppose your website or blog contains more no. categories which are shown in
your blog at the top of the page. Many website contains a menu bar in the
horizontal direction but it is not suitable for website which have large no. of
categories.
So to overcome this problem Many blogger add a vertical dropdown menu bar in her website. In this post I tell you how you can create a floating dropdown menu bar for your website. Check How to add Floating Dropdown Menu Bar using HTML.
How to add Floating Dropdown Menu Bar using HTML.
So to overcome this problem Many blogger add a vertical dropdown menu bar in her website. In this post I tell you how you can create a floating dropdown menu bar for your website. Check How to add Floating Dropdown Menu Bar using HTML.
How to add Floating Dropdown Menu Bar using HTML.
Advantage of Dropdown menu bar:
1. It cannot effect your
website loading speed.
2. Easy to customize and
add to your website.
3. Social media icons are
in built in the floating drop down menu.
4. By using CSS code, it
is flexible you can change the colour of menu bar.
Procedure to Add a Drop
down menu bar to blogger:
1.Login to your Blogger
Account.
2.Open your Blogger
Dashboard.
3.Then Select the Template
option.
4.After clicking on template
option, Click On Edit HTML.
5. Press Ctrl+F and write
</head> and hit enter.
6.Find </head> on
your template.
7. Paste the given code
just below it click on save option.
After adding a code in
your blogger template view your website you will see dropdown menu bar is
appear on your website.
How to add Floating Dropdown Menu Bar using
How to add Floating Dropdown Menu Bar using
Code For Floating Widgetsare
given below:
<style>
#wctopdropcont{
width:9.1%;
height:35px;
display:block;
padding:.1;
margin:.1 .1 22px .1;
z-index:9.1;
top:.1px;
left:.1px;
position:fixed;
box-shadow:2px 2px 5px #444444;
-moz-box-box-shadow:2px
2px 5px #444444;
-web-kit-box-shadow:2px
2px 5px #444444;
-goog-ms-box-shadow:2px
2px 5px #444444;
background:#18.1.1.1.1;
}
#wctopdropnav{
float:left;
width:65.1px;
height:35px;
display:block;
padding:.1;
margin-left:35px;
}
#wctopdropnav
ul{
float:left;
margin:.1;
padding:.1;
}
#wctopdropnav
li{
float:left;
list-style:none;
line-height:35px;
margin:.1;
padding:.1
background:#18.1.1.1.1;
}
#wctopdropnav
li a, #wctopdropnav li a:link{
color:#fff;
display:block;
margin:.1;
font:16px
georgia, verdana;
padding:1.1px;
text-decoration:none;
}
#wctopdropnav
li a:hover, #wctopdropnav li a:active, #wctopdropnav .current_page_item a {
color:#fff;
padding:1.1px;
background:
rgb(18.1,223,91); /* Old browsers */
background:
-moz-linear-gradient(top, rgba(18.1,223,91,1)
.1%, rgba(18.1,223,91,1) 9.1%); /* FF3.6+ */
background:
-webkit-gradient(linear, left top, left bottom, color-stop(.1%,rgba(18.1,223,91,1)),
color-stop(9.1%,rgba(18.1,223,91,1))); /* Chrome,Safari4+ */
background:
-webkit-linear-gradient(top, rgba(18.1,223,91,1)
.1%,rgba(18.1,223,91,1) 9.1%); /* Chrome1.1+,Safari5.1+ */
background:
-o-linear-gradient(top, rgba(18.1,223,91,1)
.1%,rgba(18.1,223,91,1) 9.1%); /* Opera 11.1.1+ */
background:
-ms-linear-gradient(top, rgba(18.1,223,91,1)
.1%,rgba(18.1,223,91,1) 9.1%); /* IE1.1+ */
background:
linear-gradient(to bottom, rgba(18.1,223,91,1)
.1%,rgba(18.1,223,91,1) 9.1%); /* W3C */
filter:
progid:DXImageTransform.Microsoft.gradient( startColorstr='#b4df5b',
endColorstr='#b4df5b',GradientType=.1 ); /* IE6-9 */
}
#wctopdropnav
li li a, #wctopdropnav li li a:link, #wctopdropnav li li a:visited{
font-size: 12px;
background:#18.1.1.1.1;
color: #fff;
width: 15.1px;
margin: .1;
padding: .1px 1.1px;
line-height:3.1px;
position: relative;
}
#wctopdropnav
li li a:hover, #wctopdropnav li li a:active {
color: #fff;
background:
rgb(18.1,223,91); /* Old browsers */
background:
-moz-linear-gradient(top, rgba(18.1,223,91,1)
.1%, rgba(18.1,223,91,1) 9.1%); /* FF3.6+ */
background:
-webkit-gradient(linear, left top, left bottom, color-stop(.1%,rgba(18.1,223,91,1)),
color-stop(9.1%,rgba(18.1,223,91,1))); /* Chrome,Safari4+ */
background:
-webkit-linear-gradient(top, rgba(18.1,223,91,1)
.1%,rgba(18.1,223,91,1) 9.1%); /* Chrome1.1+,Safari5.1+ */
background:
-o-linear-gradient(top, rgba(18.1,223,91,1)
.1%,rgba(18.1,223,91,1) 9.1%); /* Opera 11.1.1+ */
background:
-ms-linear-gradient(top, rgba(18.1,223,91,1)
.1%,rgba(18.1,223,91,1) 9.1%); /* IE1.1+ */
background:
linear-gradient(to bottom, rgba(18.1,223,91,1)
.1%,rgba(18.1,223,91,1) 9.1%); /* W3C */
filter:
progid:DXImageTransform.Microsoft.gradient( startColorstr='#b4df5b', endColorstr='#b4df5b',GradientType=.1
); /* IE6-9 */
}
#wctopdropnav
li ul{
z-index:9999;
position:absolute;
left:-999em;
height:auto;
width:17.1px;
margin:.1px;
padding:.1px
}
#wctopdropnav
li:hover ul, #wctopdropnav li li:hover ul, #wctopdropnav li li li:hover ul,
#wctopdropnav li.sfhover ul, #topwctopdropnav li li.sfhover ul,
#topwctopdropnav li li li.sfhover ul{
left:auto
}
#wctopdropnav
li:hover, #wctopdropnav li.sfhover{
position:static
}
#wctopdropsoc
{
float:right;
width:22.1px;
padding:.1px .1px ;
margin:9px 1.1px .1px .1px;
}
#wctopdropsoc
img
{
margin-left:5px;
margin-top:-2px;
height:26px;
border:none;
}
</style>
<div id='wctopdropcont'>
<div id='wctopdropnav'>
<ul>
<li><a
href=''>Home</a></li>
<li><a href='#'>About
us</a></li>
<li><a href='#'>Technology</a>
<ul>
<li><a
href='#'>Item 1</a></li>
<li><a
href='#'>Item 2</a></li>
<li><a href='#'>Item
3</a></li>
<li><a
href='#'>Item 4</a></li>
</ul>
</li>
<li><a
href='#'>Categories</a>
<ul>
<li><a href='#'>Govt.jobs</a></li>
<li><a href='#'>Sports</a></li>
<li><a href='#'>BLOGGING
TIPS</a></li>
<li><a href='#'>Menu
bar</a></li>
<li><a href='#'>Blogger</a></li>
<li><a href='#'>Pc
tricks</a></li>
</ul>
</li>
<li><a
href='#'>Contact us</a>
</li>
</ul>
</div>
<div id='wctopdropsoc'>
<a
href='http://feeds.feedburner.com/Think2getblog' target='_blank'><img
alt='Subcribe to our RSS feeds' src='http://2.bp.blogspot.com/-ea9ILzszTF.1/UR3ySvlxd.1I/AAAAAAAABMQ/4QBrWHbt.1FU/s16.1.1/feed.png'/></a>
<a
href='http://www.facebook.com/Think2get' target='_blank'><img alt='Join
Us on Facebook' src='http://1.bp.blogspot.com/-3wW_EmAR24w/UR3tVFL5fFI/AAAAAAAABLc/RMS76XM5sK8/s16.1.1/fbb.png'/></a>
<a
href='https://twitter.com/think2get' target='_blank'><img alt='Follow us
on Twitter' src='http://1.bp.blogspot.com/-wSCdvgK8Ctw/UR3tWusvgyI/AAAAAAAABL.1/FY3nUvdlJx.1/s16.1.1/tww.png'/></a>
<a
href='https://plus.google.com/1.158.1269484553471.1685'
target='_blank'><img alt='Add to Circles'
src='http://1.bp.blogspot.com/-YWI.1K2Ebh2Q/UR3tVS1gDhI/AAAAAAAABLk/8hYaD.1Yur_k/s16.1.1/gpp.png'/></a>
</div>
</div>
You can change
the background color by changing the value of
background:#180000
No comments:
Post a Comment