Build Online Store! | Penguin Panda Series - New! | 4 Rules To Make Money | SEO Settings | Facebook Popup 1, 2, 3 | Mashable 1 , 2


Monday, January 9, 2012

CSS3 Drop Down Menu - No Images and No Scripts!


Pin It

css3 Drop down menu


After My Previous Article Make a Popup Subscribe Like aweber, I’m Back here With another Supercool Article About Cool Css3 Navigation In Blogger. Again Thanks To Mohammad Mustafa Sir For Making It Approved. This amazing drop down menu is created by Catalin Rosu and uses no images or scripts at all! We will be sharing a modified version which may work perfectly with Blogger. Its pure power display of CSS3 . It is really Cool and Professional Widget For Your Blog Which will really change the appearance of Your Blog and Make it trendy and attractive. It is very Easily Integrated in your BLOG.

 

Live Demo

Why Choose This Menu?

This Widget is Simple, Supercool And The Main Part is that It Doesn’t Needs Any jQuery or JavaScript. It uses no images at all and loads extremely fast. The previous CSS3 Menu that we shared made use of images and therefore took few seconds to load but this one is far ahead in quality load time. It’s a sure thing that CSS3 features like transitions, animations and transforms can add extra spice to your designs. In this article you will see how you can build an awesome CSS3 animated dropdown menu with some of these cool features.

Add it to Blogger

This Navigation Uses Css3 And Has A Smooth Scrolling Effect Which Makes It Unique And Special. Have Fun and Enjoy it By Adding In Your Blog.
To Enable This You Need To Do The Following :

  1. Go To Blogger > Design
  2. Click on "Add a Gadget"
  3. Choose HTML/Javascript widget
  4. Paste the following code inside it

<style>

/*------ CSS3 Drop Down Menu By MBT (www.mybloggertricks.com)---------*/

#mbt-menu, #mbt-menu ul {

margin: 0;

padding: 0;

list-style: none;

}

#mbt-menu {

width: 960px;

margin: 60px auto;

border: 1px solid #222;

background-color: #111;

background-image: -moz-linear-gradient(#444, #111);

background-image: -webkit-gradient(linear, left top, left bottom, from(#444), to(#111));

background-image: -webkit-linear-gradient(#444, #111);

background-image: -o-linear-gradient(#444, #111);

background-image: -ms-linear-gradient(#444, #111);

background-image: linear-gradient(#444, #111);

-moz-border-radius: 6px;

-webkit-border-radius: 6px;

border-radius: 6px;

-moz-box-shadow: 0 1px 1px #777;

-webkit-box-shadow: 0 1px 1px #777;

box-shadow: 0 1px 1px #777;

}

#mbt-menu:before,

#mbt-menu:after {

content: "";

display: table;

}

#mbt-menu:after {

clear: both;

}

#mbt-menu {

zoom:1;

}

#mbt-menu li {

float: left;

border-right: 1px solid #222;

-moz-box-shadow: 1px 0 0 #444;

-webkit-box-shadow: 1px 0 0 #444;

box-shadow: 1px 0 0 #444;

position: relative;

}

#mbt-menu a {

float: left;

padding: 12px 30px;

color: #999;

text-transform: uppercase;

font: bold 12px Arial, Helvetica;

text-decoration: none;

text-shadow: 0 1px 0 #000;

}

#mbt-menu li:hover > a {

color: #fafafa;

}

*html #mbt-menu li a:hover { /* IE6 only */

color: #fafafa;

}

#mbt-menu ul {

margin: 20px 0 0 0;

_margin: 0; /*IE6 only*/

opacity: 0;

visibility: hidden;

position: absolute;

top: 38px;

left: 0;

z-index: 9999;

background: #444;

background: -moz-linear-gradient(#444, #111);

background: -webkit-gradient(linear,left bottom,left top,color-stop(0, #111),color-stop(1, #444));

background: -webkit-linear-gradient(#444, #111);

background: -o-linear-gradient(#444, #111);

background: -ms-linear-gradient(#444, #111);

background: linear-gradient(#444, #111);

-moz-box-shadow: 0 -1px rgba(255,255,255,.3);

-webkit-box-shadow: 0 -1px 0 rgba(255,255,255,.3);

box-shadow: 0 -1px 0 rgba(255,255,255,.3);

-moz-border-radius: 3px;

-webkit-border-radius: 3px;

border-radius: 3px;

-webkit-transition: all .2s ease-in-out;

-moz-transition: all .2s ease-in-out;

-ms-transition: all .2s ease-in-out;

-o-transition: all .2s ease-in-out;

transition: all .2s ease-in-out;

}

#mbt-menu li:hover > ul {

opacity: 1;

visibility: visible;

margin: 0;

}

#mbt-menu ul ul {

top: 0;

left: 150px;

margin: 0 0 0 20px;

_margin: 0; /*IE6 only*/

-moz-box-shadow: -1px 0 0 rgba(255,255,255,.3);

-webkit-box-shadow: -1px 0 0 rgba(255,255,255,.3);

box-shadow: -1px 0 0 rgba(255,255,255,.3);

}

#mbt-menu ul li {

float: none;

display: block;

border: 0;

_line-height: 0; /*IE6 only*/

-moz-box-shadow: 0 1px 0 #111, 0 2px 0 #666;

-webkit-box-shadow: 0 1px 0 #111, 0 2px 0 #666;

box-shadow: 0 1px 0 #111, 0 2px 0 #666;

}

#mbt-menu ul li:last-child {

-moz-box-shadow: none;

-webkit-box-shadow: none;

box-shadow: none;

}

#mbt-menu ul a {

padding: 10px;

width: 130px;

_height: 10px; /*IE6 only*/

display: block;

white-space: nowrap;

float: none;

text-transform: none;

}

#mbt-menu ul a:hover {

background-color: #0186ba;

background-image: -moz-linear-gradient(#04acec, #0186ba);

background-image: -webkit-gradient(linear, left top, left bottom, from(#04acec), to(#0186ba));

background-image: -webkit-linear-gradient(#04acec, #0186ba);

background-image: -o-linear-gradient(#04acec, #0186ba);

background-image: -ms-linear-gradient(#04acec, #0186ba);

background-image: linear-gradient(#04acec, #0186ba);

}

#mbt-menu ul li:first-child > a {

-moz-border-radius: 3px 3px 0 0;

-webkit-border-radius: 3px 3px 0 0;

border-radius: 3px 3px 0 0;

}

#mbt-menu ul li:first-child > a:after {

content: '';

position: absolute;

left: 40px;

top: -6px;

border-left: 6px solid transparent;

border-right: 6px solid transparent;

border-bottom: 6px solid #444;

}

#mbt-menu ul ul li:first-child a:after {

left: -6px;

top: 50%;

margin-top: -6px;

border-left: 0;

border-bottom: 6px solid transparent;

border-top: 6px solid transparent;

border-right: 6px solid #3b3b3b;

}

#mbt-menu ul li:first-child a:hover:after {

border-bottom-color: #04acec;

}

#mbt-menu ul ul li:first-child a:hover:after {

border-right-color: #0299d3;

border-bottom-color: transparent;

}

#mbt-menu ul li:last-child > a {

-moz-border-radius: 0 0 3px 3px;

-webkit-border-radius: 0 0 3px 3px;

border-radius: 0 0 3px 3px;

}


</style>


<ul id="mbt-menu">
<li><a href="#">Home</a></li>
<li>
<a href="#">Categories</a>
<ul>
<li><a href="#">CSS</a></li>
<li><a href="#">Graphic design</a></li>
<li><a href="#">Development tools</a></li>
<li><a href="#">Web design</a></li>
</ul>
</li>
<li><a href="#">Work</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>

The widget is extremely easy to be edited. To change links title simply replaced the bolded text with your page titles and replace the hash sign (#) with respective links.

5. Click save and Done! :)

Need Help?

For any further help please feel free to post your queries in the comment box below. Its Very Handy, Light weight and Professional navigation Which you all can use to get rid of scripts and bulky menus that uses images and takes a lot of time to load.

Don't forget to check:


This Is Me Sidharth, The Admin Of ILibrary, Stay In Contact With Me @Facebook


If you enjoyed this post and wish to be informed whenever a new post is published, then make sure you Subscribe to our regular Email Updates!

If you don't want to get yourself into Serious Technical Trouble while editing your Blog Template then just sit back and relax and let us do the Job for you at a fairly reasonable cost. Submit your order details by Clicking Here »


Thanks for making this possible! Kindly Bookmark and Share it.
Technorati Digg This Stumble Facebook Twitter

46 comments:

Comment Page :
Syed Shan Ali on 12:04 AM, January 09, 2012 said... #

awesome design bro....

Rahul on 1:16 AM, January 09, 2012 said... #

Nice design without image.
Keep it up sir

Muhammad Allam on 1:29 AM, January 09, 2012 said... #

Gorgeous Design
Is A Unique, Thank You Muhammad.
MAKE DOLLARS ONLINE

Shoaib on 9:19 AM, January 09, 2012 said... #

Very nice but i have a question
My blog menu are created in html not java script gadget
can i put this to my html?

Hariharan Velu on 1:09 PM, January 09, 2012 said... #

Superb! :)

Hiapics blogspot on 1:32 PM, January 09, 2012 said... #

how to remove my blog drop down menu and how to insert above drop down menu in to my blog ....i am useing Robusta Blogger Template .....my web is www.hiapics.co.cc

Faiz Muhammad Khan on 1:48 PM, January 09, 2012 said... #

Beautiful Navigations

Admin on 5:28 PM, January 09, 2012 said... #

very nice article.
Shayari n sms Blog

abushaleh.net on 6:44 PM, January 09, 2012 said... #

another good article from you Sid. :)

Shoaib on 3:02 PM, January 10, 2012 said... #

When i apply this to my blog its drop down menus hide in tmeplate
How do i fix this
Thanks

Praveen Kumar on 11:20 AM, January 11, 2012 said... #

Dear Freind,
Thanks for this beautiful/easy tool i like this. the problem which i am facing is what Mr. Shoaib is facing "When i apply this to my blog its drop down menus hide in tmeplate" but when i keep this widget just above the blog post it works perfectly. please tell me how to keep this widget below pages in blogger.
my blog address is : http://latestupdatesofincometax.blogspot.com/

Nuzul Fachrul Afgan on 8:07 PM, January 12, 2012 said... #

Assalam Mustafa... i have problem same with Praveen Kumar, Help me!!! my blog: d-t3xfa.blogspot.com

Nuzul Fachrul Afgan on 1:19 AM, January 13, 2012 said... #

Hallo Mustafa, I Succed install this menu at my blog. now, i want to change the width and add some menu again because now installed 8 options.. i want 10 options, how???

Αλέξανδρος on 2:13 PM, January 13, 2012 said... #

Hello Mustafa and congratulations for your job

You have sub menu only after the "CATOGORIES" and I want to add another one submenu after "WORK". Is it possible and if yes how can i do??
Thanks

Johnny Blues on 3:48 AM, January 14, 2012 said... #

Hello
I've got a problem with the drop down menu, could you help me.
It doesn't drop down when you put your courser on it.

please help me.
email:
bruetalsociety@googlemail.com
blog
bruetalsociety.blogspot.com

VanLinhEx on 7:23 AM, January 16, 2012 said... #

Thanks for sharing but i think it's not work on IE (CSS3)

Hải yến on 8:28 PM, January 29, 2012 said... #

thank for post

Riley Adam Voth on 7:29 PM, February 03, 2012 said... #

Like other readers I saying, the drop down list is hidden covered by the blog because it's in a widget. Is there an easy fix for this? Such as maybe changing the z-index for the widget?

Mohammad Mustafa Ahmedzai on 9:12 PM, February 03, 2012 said... #

@Valin

Works with IE9 pal :)

@riley

Replace the following code in your widget code:

<ul>
<li><a href="http://www.rileyadamvoth.com/p/tragedy-fortunate.html">Tragedy Fortunate</a></li>
<li><a href="#">Five Seventeen</a></li>
</ul>
</ul>



with this:


<li><a href="http://www.rileyadamvoth.com/p/tragedy-fortunate.html">Tragedy Fortunate</a></li>
<li><a href="#">Five Seventeen</a></li>

</ul>


See if it works. Z-index is already set to 9999 which will bring it at front of all other elements. The problem with your code is related to some other problem. Try and let me. :)

Sunny Bhagat on 8:02 PM, February 04, 2012 said... #

I placed this code in my blog at the top gadget but the drop menu is not visible. please do help me...

Riley Adam Voth on 6:54 AM, February 06, 2012 said... #

Hey thanks so much for replying. Shortly after I posted the question I figured it out. It couldn't be posted as a gadget, but it worked when I put it in my template and worked on it some.
Your site has helped me so much as I've built my blog one piece at a time. :) Thanks for all your tutorials! I'm definitely going to donate to you for your work. Great job.

Hemant Verma on 3:58 PM, February 08, 2012 said... #

Get a Translator widget with 36v languages.

http://www.fblatest.in/2012/02/google-translate-widget-with-36.html


if u like it then, subscribe us for daily fresh updates.

Viet Skin Corporation on 12:52 PM, February 10, 2012 said... #

When I use this CSS in my blog (http://viskcorp.blogspot.com), it has a problem in IE8 with Compatibility View button. Phrases in each list item ("li") does not separate to rows. They stuck together. Please help me.

Mark and Gaz on 1:36 AM, February 11, 2012 said... #

Thanks, very useful.

I have used this in my blog http://www.alternativeeden.com/ and have changed the colours to fit.

However is it posible to have 2 different highlight text colours.

i.e on roll over for top level text to change to (in my case orange) and then for the drop down text to stay white?

Hồng Phi on 12:41 PM, February 15, 2012 said... #

I use the thesis blogger template of Anup, but the dropdown menu don't display well on IE. I applied this post for my blog and optained the dropdown menu, which shown well on IE. Thank you very much.

mahesh on 1:07 AM, February 26, 2012 said... #

bhai.....thanks, m try your post in my blog.

soft-09.blogspot.in.

bhai plz visit my blog and give me some feedback

srtresco on 6:39 AM, March 15, 2012 said... #

For those with the problem of dropdown menu that not appear (hidden), maybe because you are using a new theme layout in blogger, do the following:
below: #mbt-menu {
put:
overflow:visible;


I think that's it!
Sorry! My portuguese is better than my english. LOL!
Marco

Bachkhoamedia on 9:23 AM, March 19, 2012 said... #

Thanks you so much !

Arenaria Gardens, LLC on 6:22 PM, March 23, 2012 said... #

Hi, thanks for the menu. It works great. I would, however, like to change the colour scheme and the width of the drop-down menus to fit larger text. I don't know much about HTML5 or CSS so I don't know what to change to fix these minor points. Any help would be greatly appreciated.

Les

Satyajyoti Biswas on 2:00 AM, March 26, 2012 said... #
This comment has been removed by the author.
Satyajyoti Biswas on 2:30 AM, March 26, 2012 said... #

thanks bro..thanks very much..:)

Arenaria Gardens, LLC on 3:23 AM, March 28, 2012 said... #

I made mods to fix the colours and sizes of the li entries. But, I find that on IE8 the menu loses focus after about 3 entries down - i.e. move to the fourth entry and the drop-down part goes away. I added 'overflow: visible'. It works fine with Chrome and Firefox on WinXP and on Linux. Just IE is the problem (isn't it always?).
Also, the gradient doesn't seem to work on IE either. The menu is completely flat. It's a shame because, otherwise, it is a great menu.

Nidhi on 2:03 AM, March 30, 2012 said... #

I face the same problem while added a menu it got hide and somehow I managed to make it available using "overflow:visible;" but still its showing half of the drop down contents. Also behind the menu I got a white screen.
My Blog is - http://dynamicbest.blogspot.in/
please advice.

Nidhi on 2:41 AM, March 30, 2012 said... #

In addition I checked with SIMPLE template and it worked fine but with Awesome INC. template I got above issues. so is this not compatible with Awesome INC. template ?

Webmaster on 1:36 AM, April 03, 2012 said... #

I have fixed the issue with the cutted menu! i have removed the css tag in: .tabs-outer (it's the header), there you must disable: overflow: hidden;

Please tell me if it works! Have a nice day. juri

Tim on 8:28 AM, April 04, 2012 said... #

I have the same problem as some people mentioned above. The dropdown menu is hidden when I have it above "blog posts" which is the only place it makes sense for me. you can see it here
http://angrychairsmusic.blogspot.ca/

Tim on 8:30 AM, April 04, 2012 said... #

Nevermind, Guess i skipped the comment that solved this. All fixed.

Tim on 8:48 AM, April 04, 2012 said... #

Now for a new problem. I managed to change the gradient of the bar to black cause it suits my blog better, I just cant seem to get the gradient out of the dropdown tabs. I would like it all to just be black and only have the text be seen, no background.

Shakil Wahid on 11:10 AM, April 04, 2012 said... #

Awesome, thanks for this article. But, sir I have a little problem. My blog has a green template and this black menu bar wont be suitable for my template. Could you tell me how can I properly change the background color. Waiting for ur reply.....

Mohammad Mustafa Ahmedzai on 11:54 AM, April 04, 2012 said... #

@tim

For changing the background colours do this tim:

For change navigation main background colour edit the bolded parts:

#mbt-menu {

width: 960px;

margin: 60px auto;

border: 1px solid #222;

background-color: #111;

background-image: -moz-linear-gradient(#444, #111);

background-image: -webkit-gradient(linear, left top, left bottom, from(#444), to(#111));

background-image: -webkit-linear-gradient(#444, #111);

background-image: -o-linear-gradient(#444, #111);

background-image: -ms-linear-gradient(#444, #111);

background-image: linear-gradient(#444, #111);



To change the drop down menu colour edit:


#mbt-menu ul {

margin: 20px 0 0 0;

_margin: 0; /*IE6 only*/

opacity: 0;

visibility: hidden;

position: absolute;

top: 38px;

left: 0;

z-index: 9999;

background: #444;

background: -moz-linear-gradient(#444, #111);

background: -webkit-gradient(linear,left bottom,left top,color-stop(0, #111),color-stop(1, #444));

background: -webkit-linear-gradient(#444, #111);

background: -o-linear-gradient(#444, #111);

background: -ms-linear-gradient(#444, #111);

background: linear-gradient(#444, #111);




To change the drop down menu colour on mouse hover edit:

#mbt-menu ul a:hover {

background-color: #0186ba;

background-image: -moz-linear-gradient(#04acec, #0186ba);

background-image: -webkit-gradient(linear, left top, left bottom, from(#04acec), to(#0186ba));

background-image: -webkit-linear-gradient(#04acec, #0186ba);

background-image: -o-linear-gradient(#04acec, #0186ba);

background-image: -ms-linear-gradient(#04acec, #0186ba);

background-image: linear-gradient(#04acec, #0186ba);

}



I juts hope this answers all your questions. :)

Tim on 3:36 PM, April 04, 2012 said... #

thanks, all good now.

Nidhi on 1:20 AM, April 05, 2012 said... #
This comment has been removed by the author.
Martin John Hadley on 5:20 PM, April 11, 2012 said... #

Many thanks for this! Due to the template I used I ended up putting it in the source, but srtesco's hint of overflow:visible did help while I was setting up.

Alien RTU Guide on 5:15 PM, April 27, 2012 said... #

I put the code but only one sub menu is visible and not all! I mean the sub menu tabs are not displaying and I've put overflow to visible also. Please help. Visit wwww.oxylearing.com

Oyen on 7:32 AM, May 06, 2012 said... #

WOW, awesome dude, you know what I need :D
thanks..

You can see the result in my blog,
Antusia Project

Janice Carrington on 1:08 AM, May 14, 2012 said... #

would love to add this drop down menu to my blog but seems it does not work with the awesome inc template...or am i missing something!
if this works better for my template by adding it in another way (in the html instead of widget) would someone be kind enough to explain how i do that...thank you.

Confused? Feel free to ask

Your feedback is always appreciated. We will try to reply to your queries as soon as time allows.

Note:
1. To add HTML CODE in comments then please use our HTML Encoder
2. You can always Test the tutorial on our HTML Editor
3. Please do not spam Spam comments will be deleted immediately upon our review.

Regards,
Mohammad

 

Recent Posts

Join Me On Facebook

8600+ Followers

Join The Team!

Licensed Under CC

Recent Comments

Follow Me On Twitter

2601+ Followers

My Blogger Tricks (MBT) © 2012. All Rights Reserved | Contact |