Advertisement
dev_imran

Drpdwn.css

Oct 21st, 2018
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.50 KB | None | 0 0
  1. /* Home work 4 */
  2.  
  3. .triangle_menu{
  4. margin-left: 80px;
  5. }
  6. .triangle_menu li{
  7. list-style: none;
  8. display: inline-block;
  9. position: relative;
  10. }
  11. .triangle_menu>li a{
  12. padding: 15px 30px;
  13. background: #344A5F;
  14. color: #fff;
  15. text-decoration: none;
  16. font-size: 18px;
  17. font-family: Arial, Helvetica, sans-serif;
  18. position: relative;
  19. margin-right: 47px;
  20. }
  21.  
  22. .triangle_menu>li a:hover{
  23. background: #FF6347;
  24. }
  25. .triangle_menu>li:hover>a::after{
  26. content: " ";
  27. border: 25px solid #344A5F;
  28. display: block;
  29. position: absolute;
  30. border-right-color: transparent;
  31. border-left-color: #FF6347;
  32. border-top-color: transparent;
  33. border-bottom-color: #FF6347;
  34. top: 0px;
  35. right: -50px;
  36. }
  37. .triangle_menu>li:hover>a::before{
  38. content: " ";
  39. border: 25px solid #344A5F;
  40. display: block;
  41. position: absolute;
  42. border-right-color: #FF6347;
  43. border-left-color: transparent;
  44. border-top-color: #FF6347;
  45. border-bottom-color: transparent;
  46. top: 0px;
  47. left: -50px;
  48. }
  49.  
  50. .triangle_menu>li a::after{
  51. content: " ";
  52. border: 25px solid #344A5F;
  53. display: block;
  54. position: absolute;
  55. border-right-color: transparent;
  56. border-left-color: #344A5F;
  57. border-top-color: transparent;
  58. border-bottom-color: #344A5F;
  59. top: 0px;
  60. right: -50px;
  61. }
  62. .triangle_menu>li a::before{
  63. content: " ";
  64. border: 25px solid #344A5F;
  65. display: block;
  66. position: absolute;
  67. border-right-color: #344A5F;
  68. border-left-color: transparent;
  69. border-top-color: #344A5F;
  70. border-bottom-color: transparent;
  71. top: 0px;
  72. left: -50px;
  73. }
  74. .triangle_menu>li:hover .sub_menu{
  75. display: block;
  76. }
  77. .sub_menu{
  78. position: absolute;
  79. top: 36px;
  80. left:-20px;
  81. display: none;
  82. }
  83. .sub_menu li{
  84. display: block;
  85. position: relative;
  86. }
  87. .sub_menu li a{
  88. display: block;
  89. width: 150px;
  90. position: relative;
  91. }
  92. .sub_menu>li:nth-child(even) a{
  93. position: relative;
  94. left: 50px;
  95.  
  96. }
  97. .sub_menu li a::after{
  98. content: " ";
  99. border: 25.5px solid #344A5F;
  100. display: block;
  101. position: absolute;
  102. border-right-color: transparent;
  103. border-left-color: #344A5F;
  104. border-top-color: #344A5F;
  105. border-bottom-color: transparent;
  106. top: 0px;
  107. right: -50.5px;
  108. }
  109. .sub_menu>li:hover>a::after{
  110. content: " ";
  111. border: 25.5px solid #344A5F;
  112. display: block;
  113. position: absolute;
  114. border-right-color: transparent;
  115. border-left-color: #FF6347;
  116. border-top-color: #FF6347;
  117. border-bottom-color: transparent;
  118. top: 0px;
  119. right: -50.5px;
  120. }
  121. .sub_menu li a::before{
  122. content: " ";
  123. border: 25.5px solid #344A5F;
  124. display: block;
  125. position: absolute;
  126. border-right-color: #344A5F;
  127. border-left-color: transparent;
  128. border-top-color: transparent;
  129. border-bottom-color: #344A5F;
  130. top: 0px;
  131. left: -50.5px;
  132. }
  133. .sub_menu>li:hover>a::before{
  134. content: " ";
  135. border: 25.5px solid #344A5F;
  136. display: block;
  137. position: absolute;
  138. border-right-color: #FF6347;
  139. border-left-color: transparent;
  140. border-top-color: transparent;
  141. border-bottom-color: #FF6347;
  142. top: 0px;
  143. left: -50.5px;
  144. }
  145. .sub_menu li:nth-child(even) a::after{
  146. content: " ";
  147. border: 25.5px solid #344A5F;
  148. display: block;
  149. position: absolute;
  150. border-right-color: transparent;
  151. border-left-color: #344A5F;
  152. border-top-color: transparent;
  153. border-bottom-color: #344A5F;
  154. top: 0px;
  155. right: -50.5px;
  156. }
  157. .sub_menu li:nth-child(even) a::before{
  158. content: " ";
  159. border: 25.5px solid #344A5F;
  160. display: block;
  161. position: absolute;
  162. border-right-color: #344A5F;
  163. border-left-color: transparent;
  164. border-top-color: #344A5F;
  165. border-bottom-color: transparent;
  166. top: 0px;
  167. left: -50.5px;
  168. }
  169. .sub_menu li:nth-child(even):hover a::after{
  170. content: " ";
  171. border: 25.5px solid #344A5F;
  172. display: block;
  173. position: absolute;
  174. border-right-color: transparent;
  175. border-left-color: #FF6347;
  176. border-top-color: transparent;
  177. border-bottom-color: #FF6347;
  178. top: 0px;
  179. right: -50.5px;
  180. }
  181. .sub_menu li:nth-child(even):hover a::before{
  182. content: " ";
  183. border: 25.5px solid #344A5F;
  184. display: block;
  185. position: absolute;
  186. border-right-color: #FF6347;
  187. border-left-color: transparent;
  188. border-top-color: #FF6347;
  189. border-bottom-color: transparent;
  190. top: 0px;
  191. left: -50.5px;
  192. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement