[go: up one dir, main page]

Advertisement
powylv

drop-down menu similar to kyomoto crd's

Nov 7th, 2022 (edited)
1,261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
  2.  
  3. <script>
  4. $(function () {
  5. $(".content").hide();
  6. $(".title").click(function () {
  7. $(this).next(".content").slideToggle(400);
  8. });
  9. });
  10. </script>
  11.  
  12. <style>
  13. #drop_down {
  14. position: absolute;
  15. width: 80px;
  16. padding: 5px;
  17. background: #fff5f9;
  18. border: 1.5px solid #ffd4df;
  19. border-radius: 4px;
  20. font: 0.7em system-ui;
  21. }
  22.  
  23. .title {
  24. font-weight: bold;
  25. color: #C44565;
  26. }
  27.  
  28. .content {
  29. color: #000;
  30. margin-top: 3px;
  31. }
  32. </style>
  33.  
  34. <div id="drop_down" align="center">
  35. <div class="title">links</div>
  36. <div class="content">
  37. <a href="#">link text</a>
  38. <br>
  39. <a href="#">link text</a>
  40. <br>
  41. <a href="#">link text</a>
  42. <br>
  43. <a href="#">link text</a>
  44. <br>
  45. <a href="#">link text</a>
  46. </div>
  47. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement