Advertisement
Guest User

CSS Menu

a guest
May 25th, 2013
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 5.13 KB | None | 0 0
  1. #cssmenu ul,
  2. #cssmenu li,
  3. #cssmenu span,
  4. #cssmenu a {
  5.   margin: 0;
  6.   padding: 0;
  7.   position: relative;
  8. }
  9. #cssmenu {
  10.   height: 49px;
  11.   border-radius: 5px 5px 0 0;
  12.   -moz-border-radius: 5px 5px 0 0;
  13.   -webkit-border-radius: 5px 5px 0 0;
  14.   background: #141414;
  15.   background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALElEQVQImWMwMrJi+v//PxMDw3+m//8ZoPR/qBgDEhuXGLoeYswhXg8R5gAAdVpfoJ3dB5oAAAAASUVORK5CYII=) 50% 50%;
  16.   background: -moz-linear-gradient(top, #32323a 0%, #141414 100%);
  17.   background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #32323a), color-stop(100%, #141414));
  18.   background: -webkit-linear-gradient(top, #32323a 0%, #141414 100%);
  19.   background: -o-linear-gradient(top, #32323a 0%, #141414 100%);
  20.   background: -ms-linear-gradient(top, #32323a 0%, #141414 100%);
  21.   background: linear-gradient(to bottom, #32323a 0%, #141414 100%);
  22.   border-bottom: 0px solid #0fa1e0;
  23. }
  24. #cssmenu:after,
  25. #cssmenu ul:after {
  26.   content: '';
  27.   display: block;
  28.   clear: both;
  29. }
  30. #cssmenu a {
  31.   background: #141414;
  32.   background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALElEQVQImWMwMrJi+v//PxMDw3+m//8ZoPR/qBgDEhuXGLoeYswhXg8R5gAAdVpfoJ3dB5oAAAAASUVORK5CYII=) 100% 100%;
  33.   background: -moz-linear-gradient(top, #32323a 0%, #141414 100%);
  34.   background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #32323a), color-stop(100%, #141414));
  35.   background: -webkit-linear-gradient(top, #32323a 0%, #141414 100%);
  36.   background: -o-linear-gradient(top, #32323a 0%, #141414 100%);
  37.   background: -ms-linear-gradient(top, #32323a 0%, #141414 100%);
  38.   background: linear-gradient(to bottom, #32323a 0%, #141414 100%);
  39.   color: #ffffff;
  40.   display: inline-block;
  41.   font-family: Helvetica, Arial, Verdana, sans-serif;
  42.   font-size: 14px;
  43.   line-height: 49px;
  44.   /* Text Spacing */
  45.   padding: 0 25px;
  46.   text-decoration: none;
  47. }
  48. #cssmenu ul {
  49.   list-style: none;
  50.   width: 100%;
  51. }
  52. #cssmenu > ul {
  53.   float: left;
  54. }
  55. #cssmenu > ul > li {
  56.   float: left;
  57. }
  58. #cssmenu > ul > li:hover:after {
  59.   content: '';
  60.   display: block;
  61.   width: 0;
  62.   height: 0;
  63.   position: absolute;
  64.   left: 50%;
  65.   bottom: 0;
  66.   border-left: 10px solid transparent;
  67.   border-right: 10px solid transparent;
  68.   border-bottom: 10px solid #0fa1e0;
  69.   margin-left: -10px;
  70. }
  71. #cssmenu > ul > li:first-child > a {
  72.   border-radius: 5px 0 0 0;
  73.   -moz-border-radius: 5px 0 0 0;
  74.   -webkit-border-radius: 5px 0 0 0;
  75. }
  76. #cssmenu > ul > li:last-child > a {
  77.   border-radius: 0 5px 0 0;
  78.   -moz-border-radius: 0 5px 0 0;
  79.   -webkit-border-radius: 0 5px 0 0;
  80. }
  81. #cssmenu > ul > li.active > a {
  82.   box-shadow: inset 0 0 3px #000000;
  83.   -moz-box-shadow: inset 0 0 3px #000000;
  84.   -webkit-box-shadow: inset 0 0 3px #000000;
  85.   background: #070707;
  86.   background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALklEQVQImWNQU9Nh+v//PxMDw3+m//8ZkNj/mRgYIHxy5f//Z0BSi18e2TwS5QG4MGB54HL+mAAAAABJRU5ErkJggg==) 100% 100%;
  87.   background: -moz-linear-gradient(top, #26262c 0%, #070707 100%);
  88.   background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #26262c), color-stop(100%, #070707));
  89.   background: -webkit-linear-gradient(top, #26262c 0%, #070707 100%);
  90.   background: -o-linear-gradient(top, #26262c 0%, #070707 100%);
  91.   background: -ms-linear-gradient(top, #26262c 0%, #070707 100%);
  92.   background: linear-gradient(to bottom, #26262c 0%, #070707 100%);
  93. }
  94. #cssmenu > ul > li:hover > a {
  95.   background: #070707;
  96.   background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALklEQVQImWNQU9Nh+v//PxMDw3+m//8ZkNj/mRgYIHxy5f//Z0BSi18e2TwS5QG4MGB54HL+mAAAAABJRU5ErkJggg==) 100% 100%;
  97.   background: -moz-linear-gradient(top, #26262c 0%, #070707 100%);
  98.   background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #26262c), color-stop(100%, #070707));
  99.   background: -webkit-linear-gradient(top, #26262c 0%, #070707 100%);
  100.   background: -o-linear-gradient(top, #26262c 0%, #070707 100%);
  101.   background: -ms-linear-gradient(top, #26262c 0%, #070707 100%);
  102.   background: linear-gradient(to bottom, #26262c 0%, #070707 100%);
  103.   box-shadow: inset 0 0 3px #000000;
  104.   -moz-box-shadow: inset 0 0 3px #000000;
  105.   -webkit-box-shadow: inset 0 0 3px #000000;
  106. }
  107. #cssmenu .has-sub {
  108.   z-index: 1;
  109. }
  110. #cssmenu .has-sub:hover > ul {
  111.   display: block;
  112. }
  113. #cssmenu .has-sub ul {
  114.   display: none;
  115.   position: absolute;
  116.   width: 200px;
  117.   top: 100%;
  118.   left: 0;
  119. }
  120. #cssmenu .has-sub ul li {
  121.   *margin-bottom: -1px;
  122. }
  123. #cssmenu .has-sub ul li a {
  124.   background: #0fa1e0;
  125.   border-bottom: 1px dotted #6fc7ec;
  126.   filter: none;
  127.   font-size: 14px;
  128.   display: block;
  129.   line-height: 120%;
  130.   padding: 10px;
  131. }
  132. #cssmenu .has-sub ul li:hover a {
  133.   background: #0c7fb0;
  134. }
  135. #cssmenu .has-sub .has-sub:hover > ul {
  136.   display: block;
  137. }
  138. #cssmenu .has-sub .has-sub ul {
  139.   display: none;
  140.   position: absolute;
  141.   left: 100%;
  142.   top: 0;
  143. }
  144. #cssmenu .has-sub .has-sub ul li a {
  145.   background: #0c7fb0;
  146.   border-bottom: 1px dotted #6db2d0;
  147. }
  148. #cssmenu .has-sub .has-sub ul li a:hover {
  149.   background: #095c80;
  150. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement