Guest User

Untitled

a guest
Apr 22nd, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.34 KB | None | 0 0
  1. .menu {
  2. width:750px;
  3. font-size:0.85em;
  4. padding-bottom:200px;
  5. }
  6. /* remove all the bullets, borders and padding from the default list styling */
  7. .menu ul {
  8. padding:0;
  9. margin:0;
  10. list-style-type:none;
  11. }
  12. .menu ul ul {
  13. width:150px;
  14. }
  15. /* float the list to make it horizontal and a relative positon so that you can control the dropdown menu positon */
  16. .menu li {
  17. float:left;
  18. width:150px;
  19. position:relative;
  20. }
  21. /* style the links for the top level */
  22. .menu a, .menu a:visited {
  23. display:block;
  24. font-size:11px;
  25. text-decoration:none;
  26. color:#fff;
  27. width:139px;
  28. height:30px;
  29. border:1px solid #fff;
  30. border-width:1px 1px 0 0;
  31. background:#758279;
  32. padding-left:10px;
  33. line-height:29px;
  34. }
  35. /* a hack so that IE5.5 faulty box model is corrected */
  36. * html .menu a, * html .menu a:visited {
  37. width:150px;
  38. w\idth:139px;
  39. }
  40. /* style the second level background */
  41. .menu ul ul a.drop, .menu ul ul a.drop:visited {
  42. background:#949e7c;
  43. }
  44. /* style the second level hover */
  45. .menu ul ul a.drop:hover{
  46. background:#c9ba65;
  47. }
  48. .menu ul ul :hover > a.drop {
  49. background:#c9ba65;
  50. }
  51. /* style the third level background */
  52. .menu ul ul ul a, .menu ul ul ul a:visited {
  53. background:#e2dfa8;
  54. }
  55. /* style the third level hover */
  56. .menu ul ul ul a:hover {
  57. background:#b2ab9b;
  58. }
  59. .menu ul ul ul :hover > a {
  60. background:#b2ab9b;
  61. }
  62. /* hide the sub levels and give them a positon absolute so that they take up no room */
  63. .menu ul ul {
  64. visibility:hidden;
  65. position:absolute;
  66. height:0;
  67. top:31px;
  68. left:0;
  69. width:150px;
  70. }
  71. /* another hack for IE5.5 */
  72. * html .menu ul ul {
  73. top:30px;
  74. t\op:31px;
  75. }
  76. /* position the third level flyout menu */
  77. .menu ul ul ul{
  78. left:150px;
  79. top:0;
  80. width:150px;
  81. }
  82. /* position the third level flyout menu for a left flyout */
  83. .menu ul ul ul.left {
  84. left:-150px;
  85. }
  86. /* style the table so that it takes no part in the layout - required for IE to work */
  87. .menu table {position:absolute; top:0; left:0;}
  88. /* style the second level links */
  89. .menu ul ul a, .menu ul ul a:visited {
  90. background:#d4d8bd;
  91. color:#000;
  92. height:auto;
  93. line-height:1em;
  94. padding:5px 10px;
  95. width:129px
  96. /* yet another hack for IE5.5 */
  97. }
  98. * html .menu ul ul a{
  99. width:150px;
  100. w\idth:129px;
  101. }
  102. /* style the top level hover */
  103. .menu a:hover, .menu ul ul a:hover{
  104. color:#fff;
  105. background:#949e7c;
  106. }
  107. .menu :hover > a, .menu ul ul :hover > a {
  108. color:#fff;
  109. background:#949e7c;
  110. }
Add Comment
Please, Sign In to add comment