adeptus

click menu

Jul 26th, 2022
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. <head>
  2. <script type="text/javascript" src="https://static.tumblr.com/3ikgvxs/0TGl4zgpu/jquery.min.js"></script>
  3. <script type="text/javascript">
  4. $(document).ready(function() {
  5. $(".links_body").hide();
  6. $(".links_head").click(function() {
  7. $(this).next(".links_body").slideToggle('active');
  8. });
  9. });
  10. </script>
  11. <style type="text/css">
  12.  
  13. .links_list {
  14. margin: 0px;
  15. padding: 0px;
  16. }
  17.  
  18. .links_head {
  19. padding-top: 2px;
  20. padding-bottom: 2px;
  21. position: relative;
  22. margin: 0px;
  23. text-align: center;
  24. font-weight: bold;
  25. color: #000;
  26. border: 1px solid black;
  27. border-radius: 5px 5px 0px 0px;
  28. }
  29.  
  30. .links_body {
  31. padding: 10px;
  32. text-align: left;
  33. display: none;
  34. border-left: 1px solid black;
  35. border-right: 1px solid black;
  36. border-bottom: 1px solid black;
  37. border-radius: 0px 0px 5px 5px;
  38. }
  39. </style>
  40. <body>
  41. <div class="links_list">
  42. <p class="links_head">
  43. <i data-feather="menu">
  44. </i>Title</p>
  45. <div class="links_body">
  46. <left>
  47. No, this does not have to be used as a menu. This could be used as anything you want it to be used as. Go crazy. Seen in Gina.crd.co, credit 805online or don't, pretty basic code that has been used since before Carrd. You may adjust the width manually here, or adjust that in Carrd by putting this in a container.
  48. </div>
  49. </div>
  50. </body>
Advertisement
Add Comment
Please, Sign In to add comment