Friday 28 September 2012

Attractive drop down menu using css

Write Down The Code

    <div id="content-wrapper">
  <ul id="hb-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><ul>
<li><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
<li><a href="#">Link 3</a></li>
<li><a href="#">Link 4</a></li>
</ul>   </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>
<ul>
<li><a href="#">CSS</a>
<ul>
<li><a href="#">Link 5</a></li>
<li><a href="#">Link 6</a></li>
<li><a href="#">Link 7</a></li>
<li><a href="#">Link 8</a></li>
</ul>  

</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="#">Contact</a></li>
<li><a href="http://www.e-seopro.com/">Add This  »</a></li></ul>


</div>





Put This Code Under Css


html body .region-inner {
    max-width: 100%;
    min-width: 0;
    width: auto;
}
a:link {
    color: #2288BB;
    text-decoration: none;
}
a:visited {
    color: #888888;
    text-decoration: none;
}
a:hover {
    color: #33AAFF;
    text-decoration: underline;
}
.body-fauxcolumn-outer .fauxcolumn-inner {
    background: none repeat scroll left top transparent;
}
.body-fauxcolumn-outer .cap-top {
    background: none repeat scroll left top #FFFFFF;
    height: 400px;
    position: absolute;
    width: 100%;
    z-index: 1;
}
.body-fauxcolumn-outer .cap-top .cap-left {
    background: none repeat-x scroll left top transparent;
    width: 100%;
}
.content-outer {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.15);
    margin-bottom: 1px;
}
.content-inner {
    padding: 10px 40px;
}
.content-inner {
    background-color: #FFFFFF;
}
.header-outer {
    background: none repeat-x scroll 0 -400px transparent;
}
.Header h1 {
    color: #000000;
    font: 40px 'Trebuchet MS',Trebuchet,Verdana,sans-serif;
    text-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
}
.Header h1 a {
    color: #000000;
}
.Header .description {
    color: #000000;
    font-size: 18px;
}
.header-inner .Header .titlewrapper {
    padding: 22px 0;
}
.header-inner .Header .descriptionwrapper {
    padding: 0;
}
.tabs-inner .section:first-child {
    border-top: 0 solid #DDDDDD;
}
.tabs-inner .section:first-child ul {
    border-left: 1px solid #DDDDDD;
    border-right: 1px solid #DDDDDD;
    border-top: 1px solid #DDDDDD;
    margin-top: -1px;
}
.tabs-inner .widget ul {
    background: none repeat-x scroll 0 -800px transparent;
    border-bottom: 1px solid #DDDDDD;
    margin-left: -30px;
    margin-right: -30px;
    margin-top: 0;
}
.tabs-inner .widget li a {
    border-left: 1px solid #FFFFFF;
    border-right: 1px solid #DDDDDD;
    color: #000000;
    display: inline-block;
    font: 12px 'Trebuchet MS',Trebuchet,Verdana,sans-serif;
    padding: 0.6em 1em;
}
.tabs-inner .widget li:first-child a {
    border-left: medium none;
}
.tabs-inner .widget li.selected a, .tabs-inner .widget li a:hover {
    background-color: #EEEEEE;
    color: #000000;
    text-decoration: none;
}
.main-outer {
    border-top: 0 solid transparent;
}
.fauxcolumn-left-outer .fauxcolumn-inner {
    border-right: 1px solid transparent;
}
.fauxcolumn-right-outer .fauxcolumn-inner {
    border-left: 1px solid transparent;
}
h2 {
    color: #000000;
    font: bold 11px 'Trebuchet MS',Trebuchet,Verdana,sans-serif;
    margin: 0 0 1em;
    text-transform: uppercase;
}
.widget .zippy {
    color: #999999;
    text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.1);
}
.widget .popular-posts ul {
    list-style: none outside none;
}
.date-header span {
    background-color: #BBBBBB;
    color: #FFFFFF;
    letter-spacing: 3px;
    margin: inherit;
    padding: 0.4em;
}
.main-inner {
    padding-bottom: 65px;
    padding-top: 35px;
}
.main-inner .column-center-inner {
    padding: 0;
}
.main-inner .column-center-inner .section {
    margin: 0 1em;
}
.post {
    margin: 0 0 45px;
}
h3.post-title, .comments h4 {
    font: 22px 'Trebuchet MS',Trebuchet,Verdana,sans-serif;
    margin: 0.75em 0 0;
}
.post-body {
    font-size: 110%;
    line-height: 1.4;
    position: relative;
}
.post-body img, .post-body .tr-caption-container, .Profile img, .Image img, .BlogList .item-thumbnail img {
    background: none repeat scroll 0 0 #FFFFFF;
    border: 1px solid #EEEEEE;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
    padding: 2px;
}
.post-body img, .post-body .tr-caption-container {
    padding: 5px;
}
.post-body .tr-caption-container {
    color: #666666;
}
.post-body .tr-caption-container img {
    background: none repeat scroll 0 0 transparent;
    border: medium none;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.1);
    padding: 0;
}
.post-header {
    font-size: 90%;
    line-height: 1.6;
    margin: 0 0 1.5em;
}
.post-footer {
    background-color: #EEEEEE;
    border-bottom: 1px solid #EEEEEE;
    color: #666666;
    font-size: 90%;
    line-height: 1.6;
    margin: 20px -2px 0;
    padding: 5px 10px;
}
#comments .comment-author {
    background-position: 0 1.5em;
    border-top: 1px solid transparent;
    padding-top: 1.5em;
}
#comments .comment-author:first-child {
    border-top: medium none;
    padding-top: 0;
}
.avatar-image-container {
    margin: 0.2em 0 0;
}
#comments .avatar-image-container img {
    border: 1px solid #EEEEEE;
}
.comments .comments-content .icon.blog-author {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEgAACxIB0t1+/AAAAAd0SU1FB9sLFwMeCjjhcOMAAAD+SURBVDjLtZSvTgNBEIe/WRRnm3U8RC1neQdsm1zSBIU9VVF1FkUguQQsD9ITmD7ECZIJSE4OZo9stoVjC/zc7ky+zH9hXwVwDpTAWWLrgS3QAe8AZgaAJI5zYAmc8r0G4AHYHQKVwII8PZrZFsBFkeRCABYiMh9BRUhnSkPTNCtVXYXURi1FpBDgArj8QU1eVXUzfnjv7yP7kwu1mYrkWlU33vs1QNu2qU8pwN0UpKoqokjWwCztrMuBhEhmh8bD5UDqur75asbcX0BGUB9/HAMB+r32hznJgXy2v0sGLBcyAJ1EK3LFcbo1s91JeLwAbwGYu7TP/3ZGfnXYPgAVNngtqatUNgAAAABJRU5ErkJggg==");
    background-repeat: no-repeat;
}
.comments .comments-content .loadmore a {
    border-bottom: 1px solid #999999;
    border-top: 1px solid #999999;
}
.comments .comment-thread.inline-thread {
    background-color: #EEEEEE;
}
.comments .continue {
    border-top: 2px solid #999999;
}
.section-columns td.columns-cell {
    border-left: 1px solid transparent;
}
.blog-pager {
    background: url("http://www.blogblog.com/1kt/simple/paging_dot.png") repeat-x scroll center top transparent;
}
.blog-pager-older-link, .home-link, .blog-pager-newer-link {
    background-color: #FFFFFF;
    padding: 5px;
}
.footer-outer {
    border-top: 1px dashed #BBBBBB;
}
body.mobile {
    background-size: auto auto;
}
.mobile .body-fauxcolumn-outer {
    background: none repeat scroll left top transparent;
}
.mobile .body-fauxcolumn-outer .cap-top {
    background-size: 100% auto;
}
.mobile .content-outer {
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
    padding: 0;
}
body.mobile .AdSense {
    margin: 0;
}
.mobile .tabs-inner .widget ul {
    margin-left: 0;
    margin-right: 0;
}
.mobile .post {
    margin: 0;
}
.mobile .main-inner .column-center-inner .section {
    margin: 0;
}
.mobile .date-header span {
    margin: 0 -10px;
    padding: 0.1em 10px;
}
.mobile h3.post-title {
    margin: 0;
}
.mobile .blog-pager {
    background: none no-repeat scroll center top transparent;
}
.mobile .footer-outer {
    border-top: medium none;
}
.mobile .main-inner, .mobile .footer-inner {
    background-color: #FFFFFF;
}
.mobile-index-contents {
    color: #666666;
}
.mobile-link-button {
    background-color: #2288BB;
}
.mobile-link-button a:link, .mobile-link-button a:visited {
    color: #FFFFFF;
}
.mobile .tabs-inner .section:first-child {
    border-top: medium none;
}
.mobile .tabs-inner .PageList .widget-content {
    background-color: #EEEEEE;
    border-bottom: 1px solid #DDDDDD;
    border-top: 1px solid #DDDDDD;
    color: #000000;
}
.mobile .tabs-inner .PageList .widget-content .pagelist-arrow {
    border-left: 1px solid #DDDDDD;
}
pularPosts1 ul {
    list-style-type: none;
    margin: 0;
    padding: 5px 0;
}
#PopularPosts1 ul li {
    border: 0 none;
    margin: 5px 0;
    padding: 10px;
    position: relative;
}
#PopularPosts1 ul li:first-child {
    background: none repeat scroll 0 0 #FA4242;
    width: 90%;
}
#PopularPosts1 ul li:first-child:after {
    content: "1";
}
#PopularPosts1 ul li:first-child + li {
    background: none repeat scroll 0 0 #EE6107;
    width: 85%;
}
#PopularPosts1 ul li:first-child + li:after {
    content: "2";
}
#PopularPosts1 ul li:first-child + li + li {
    background: none repeat scroll 0 0 #FF00FF;
    width: 80%;
}
#PopularPosts1 ul li:first-child + li + li:after {
    content: "3";
}
#PopularPosts1 ul li:first-child + li + li + li {
    background: none repeat scroll 0 0 #FFFF00;
    width: 75%;
}
#PopularPosts1 ul li:first-child + li + li + li:after {
    content: "4";
}
#PopularPosts1 ul li:first-child + li + li + li + li {
    background: none repeat scroll 0 0 #00FFFF;
    width: 70%;
}
#PopularPosts1 ul li:first-child + li + li + li + li:after {
    content: "5";
}
#PopularPosts1 ul li:first-child:after, #PopularPosts1 ul li:first-child + li:after, #PopularPosts1 ul li:first-child + li + li:after, #PopularPosts1 ul li:first-child + li + li + li:after, #PopularPosts1 ul li:first-child + li + li + li + li:after {
    background: none repeat scroll 0 0 #0A960A;
    border-radius: 50% 50% 50% 50%;
    color: #FFFFFF;
    font-size: 28px;
    height: 30px;
    line-height: 1em;
    position: absolute;
    right: -15px;
    text-align: center;
    top: 20px;
    width: 30px;
}
#PopularPosts1 ul li .item-thumbnail {
    background: none repeat scroll 0 0 transparent;
    border: 0 none;
    float: left;
    height: 40px;
    margin-right: 10px;
    padding: 0;
    width: 40px;
}
#PopularPosts1 ul li a {
    color: #444444;
    font-size: 12px;
    text-decoration: none;
}
#PopularPosts1 ul li a:hover {
    color: #222222;
    text-decoration: none;
}
#hb-menu, #hb-menu ul {
    list-style: none outside none;
    margin: 0;
    padding: 0;
}
#hb-menu {
    background-color: #111111;
    background-image: -moz-linear-gradient(#444444, #111111);
    border: 1px solid #222222;
    border-radius: 6px 6px 6px 6px;
    box-shadow: 0 1px 1px #777777;
    margin: 60px auto;
    width: 960px;
}
#hb-menu:before, #hb-menu:after {
    content: "";
    display: table;
}
#hb-menu:after {
    clear: both;
}
#hb-menu {
}
#hb-menu li {
    border-right: 1px solid #222222;
    box-shadow: 1px 0 0 #444444;
    float: left;
    position: relative;
}
#hb-menu a {
    color: #999999;
    float: left;
    font: bold 12px Arial,Helvetica;
    padding: 12px 30px;
    text-decoration: none;
    text-shadow: 0 1px 0 #000000;
    text-transform: uppercase;
}
#hb-menu li:hover > a {
    color: #FAFAFA;
}
#hb-menu ul {
    -moz-transition: all 0.2s ease-in-out 0s;
    background: -moz-linear-gradient(#444444, #111111) repeat scroll 0 0 transparent;
    border-radius: 3px 3px 3px 3px;
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.3);
    left: 0;
    margin: 20px 0 0;
    opacity: 0;
    position: absolute;
    top: 38px;
    visibility: hidden;
    z-index: 9999;
}
#hb-menu li:hover > ul {
    margin: 0;
    opacity: 1;
    visibility: visible;
}
#hb-menu ul ul {
    box-shadow: -1px 0 0 rgba(255, 255, 255, 0.3);
    left: 150px;
    margin: 0 0 0 20px;
    top: 0;
}
#hb-menu ul li {
    border: 0 none;
    box-shadow: 0 1px 0 #111111, 0 2px 0 #666666;
    display: block;
    float: none;
}
#hb-menu ul li:last-child {
    box-shadow: none;
}
#hb-menu ul a {
    display: block;
    float: none;
    padding: 10px;
    text-transform: none;
    white-space: nowrap;
    width: 130px;
}
#hb-menu ul a:hover {
    background-color: #0186BA;
    background-image: -moz-linear-gradient(#04ACEC, #0186BA);
}
#hb-menu ul li:first-child > a {
    border-radius: 3px 3px 0 0;
}
#hb-menu ul li:first-child > a:after {
    border-bottom: 6px solid #444444;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    content: "";
    left: 40px;
    position: absolute;
    top: -6px;
}
#hb-menu ul ul li:first-child a:after {
    border-color: transparent #3B3B3B transparent -moz-use-text-color;
    border-left: 0 none;
    border-style: solid solid solid none;
    border-width: 6px 6px 6px 0;
    left: -6px;
    margin-top: -6px;
    top: 50%;
}
#hb-menu ul li:first-child a:hover:after {
    border-bottom-color: #04ACEC;
}
#hb-menu ul ul li:first-child a:hover:after {
    border-bottom-color: transparent;
    border-right-color: #0299D3;
}
#hb-menu ul li:last-child > a {
    border-radius: 0 0 3px 3px;
}
#btrixcolor {
    border: 1px solid #000000;
    padding-bottom: 8px;
    padding-top: 8px;
}
#btrixcolor:hover {
    background-color: #BFE3FE;
    border: 1px solid #80C8FE;
    padding-bottom: 8px;
    padding-top: 8px;
}

No comments:

Post a Comment