Advertisement
Guest User

Untitled

a guest
Dec 20th, 2018
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. /* Style The Dropdown Button */
  2. .dropbtn {
  3. background-color: #4286f4;
  4. color: white;
  5. padding: 16px;
  6. font-size: 16px;
  7. border: none;
  8. cursor: pointer;
  9. border-bottom: 3px solid #000;
  10. border-radius: 10px;
  11. text-decoration: none;
  12. }
  13.  
  14. /* The container <div> - needed to position the dropdown content */
  15. .dropdown {
  16. position: relative;
  17. display: inline-block;
  18. }
  19.  
  20. /* Dropdown Content (Hidden by Default) */
  21. .dropdown-content {
  22. display: none;
  23. position: absolute;
  24. background-color: #f9f9f9;
  25. min-width: 160px;
  26. box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  27. z-index: 1;
  28. }
  29.  
  30. /* Links inside the dropdown */
  31. .dropdown-content a {
  32. color: black;
  33. padding: 12px 16px;
  34. text-decoration: none;
  35. display: block;
  36. }
  37.  
  38. /* Change color of dropdown links on hover */
  39. .dropdown-content a:hover {background-color: #f1f1f1}
  40.  
  41. /* Show the dropdown menu on hover */
  42. .dropdown:hover .dropdown-content {
  43. display: block;
  44. }
  45.  
  46. /* Change the background color of the dropdown button when the dropdown content is shown */
  47. .dropdown:hover .dropbtn {
  48. background-color: #4d8cf2;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement