Advertisement
Guest User

CSS Menu

a guest
Dec 18th, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.81 KB | None | 0 0
  1. #ddmenu
  2. {
  3. z-index:999999990;
  4. margin: 0px;
  5. display: block;
  6. font-family:diablo;
  7. font-size: 25px;
  8. text-align: center; /* Specify the alignment of the whole UL if UL is not width:100%;*/
  9. /* letter-spacing: 1px; */
  10. }
  11.  
  12. /*workable with bootstrap*/
  13. #ddmenu, #ddmenu div {
  14. z-index:999999990;
  15. -webkit-box-sizing: content-box;
  16. -moz-box-sizing: content-box;
  17. box-sizing:content-box;
  18. display: block;
  19. }
  20.  
  21. #ddmenu ul
  22. {
  23. /* Here you can further customize the alignment of its LIs */
  24. width:100%;
  25. margin:0px;
  26. padding:5px;
  27. font-size:20px;
  28. background:#F6F6F9;
  29. border-top: 1px solid #CCCCCC;
  30. border-bottom:none;
  31. display:block;
  32. list-style:none;
  33. position: static;
  34. z-index:999999990;
  35. visibility:hidden;
  36. padding: 5px 0px;
  37. box-shadow: 0px 2px 5px #DDDDDD;
  38. }
  39.  
  40. #ddmenu li
  41. {
  42. margin:0;
  43. padding:0;
  44. font-size:18px;
  45. display:inline-block;
  46. position:relative;
  47. color:#000000;
  48. }
  49.  
  50. #ddmenu a
  51. {
  52. color:#000000;
  53. padding:0 22px;
  54. line-height:40px;
  55. font-weight:normal;
  56. text-decoration:none;
  57. display:inline-block;
  58. outline:0;
  59. position:relative;
  60. }
  61.  
  62. /* links without sub-menu */
  63. #ddmenu li.over a
  64. {
  65. background-color:#DDDDDD;
  66. color:#000000;
  67. }
  68.  
  69. /* links with sub-menu */
  70. #ddmenu a.arrow
  71. {
  72. border-left:1px solid transparent;
  73. border-right:1px solid transparent;
  74. }
  75. #ddmenu li.over a.arrow
  76. {
  77. background-color:#FFFFFF;
  78. color:#003366;
  79. border-left:1px solid #DDDDDD;
  80. border-right:1px solid #DDDDDD;
  81. text-decoration:underline;
  82. }
  83.  
  84. /* arrow icon style */
  85. #ddmenu li i.icon
  86. {
  87. border:4px solid transparent;/*adjust arrow size*/
  88. border-top-color:#000000;/*arrow color*/
  89. margin-left:12px;/*position*/
  90. display:inline-block;
  91. }
  92.  
  93. /* arrow hovered */
  94. #ddmenu li.over i.icon
  95. {
  96. border-top-color:#003366;
  97. }
  98.  
  99. #ddmenu li > div
  100. {
  101. padding:0;
  102. margin:0;
  103. display:none;
  104. }
  105.  
  106. #ddmenu li.search {
  107. float:right;
  108. }
  109.  
  110. /* sub-menu layout
  111. ----------------------------*/
  112.  
  113. #ddmenu div.drop
  114. {
  115. position:absolute;
  116. text-align:left;
  117. border:1px solid #DDDDDD;
  118. background:#FFFFFF;
  119. padding:20px;
  120. color:#000000;
  121. line-height:30px;
  122. font-size:13px;
  123. font-family:Arial;
  124. font-weight:bold;
  125. border-radius:0 0 6px 6px;
  126. }
  127.  
  128. /* sub-menu offset
  129. ----------------------------*/
  130.  
  131. #ddmenu div.drop
  132. {
  133. left:0px;/*Use this property to change offset of the sub-menu*/
  134. }
  135. #ddmenu div.dropToLeft
  136. {
  137. left:auto; right:0px;
  138. }
  139. #ddmenu div.dropToLeft2
  140. {
  141. left:auto; right:-120px;
  142. }
  143.  
  144. #ddmenu div.dropCenter {
  145. left: -180px; right: auto;
  146. }
  147.  
  148. /* links in sub menu
  149. ----------------------------*/
  150.  
  151. #ddmenu div.drop a
  152. {
  153. line-height:20px;
  154. font-size:12px;
  155. font-family:Arial;
  156. font-weight:normal;
  157. color:#003399;
  158. text-decoration:none;
  159. display:block;
  160. text-align:left;
  161. position:static;
  162. background:none;
  163. background-image:none;
  164. padding:0 0;
  165. }
  166.  
  167. #ddmenu div.drop a:hover
  168. {
  169. text-decoration:underline;
  170. color:#0099FF;
  171. }
  172.  
  173. #ddmenu a.buy a:link
  174. {
  175. color: #b20000;
  176. }
  177.  
  178. #ddmenu a.buy a:hover
  179. {
  180. color: #cc0000;
  181. }
  182.  
  183.  
  184. /* blocks within the sub-menu
  185. ----------------------------*/
  186.  
  187. #ddmenu div.drop div
  188. {
  189. background:none;
  190. }
  191.  
  192. #ddmenu div.column
  193. {
  194. width:auto;
  195. float:left; /*align each column in one row*/
  196. padding:0 10px; /*padding of each column*/
  197. }
  198.  
  199. #ddmenu div.column div
  200. {
  201. padding:0px 10px; /*sub-div within div.column. 10px for indent.*/
  202. }
  203.  
  204. /* useful when http://www.menucool.com/ddmenu/one-menu-for-all-pages
  205. ----------------------------*/
  206. #ddmenuLink {display:none;}
  207.  
  208.  
  209. a:link buy {
  210. color: #b20000;
  211. }
  212. a:hover buy {
  213. color: #cc0000;
  214. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement