Sidebar navigation html


SUBMITTED BY: KrisPerry

DATE: Feb. 26, 2017, 11:31 p.m.

FORMAT: HTML

SIZE: 1.5 kB

HITS: 461

  1. <style>
  2. body {
  3. font-family: "Lato", sans-serif;
  4. }
  5. .sidenav {
  6. display: none;
  7. height: 100%;
  8. width: 250px;
  9. position: fixed;
  10. z-index: 1;
  11. top: 0;
  12. left: 0;
  13. background-color: #111;
  14. overflow-x: hidden;
  15. padding-top: 60px;
  16. }
  17. .sidenav a {
  18. padding: 8px 8px 8px 32px;
  19. text-decoration: underline;
  20. font-size: 25px;
  21. color: #818181;
  22. display: block;
  23. transition: 0.3s
  24. }
  25. .sidenav a:hover, .offcanvas a:focus{
  26. color: #f1f1f1;
  27. }
  28. .sidenav .closebtn {
  29. position: absolute;
  30. top: 0;
  31. right: 25px;
  32. font-size: 36px;
  33. margin-left: 50px;
  34. }
  35. @media screen and (max-height: 450px) {
  36. .sidenav {padding-top: 15px;}
  37. .sidenav a {font-size: 18px;}
  38. }
  39. </style>
  40. <div id="mySidenav" class="sidenav">
  41. <a href="javascript:void(0)" class="closebtn" onclick="closeNav()">&times;</a>
  42. <a href="http://btc.site90.net/">Home</a><a href="http://btc.site90.net/High-Paying-Faucets/">High Paying Faucets</a>
  43. <a href="http://btc.site90.net/5-Minute-Faucets/">High Frequency Faucets</a>
  44. <a href="http://btc.site90.net/Bonus-Bitcoins/">Bonus Bitcoin</a>
  45. <a href="http://btc.site90.net/Comments/">Comments</a>
  46. </div>
  47. <span style="font-size:30px;cursor:pointer" onclick="openNav()">&#9776; Navigation</span>
  48. <script>
  49. function openNav() {
  50. document.getElementById("mySidenav").style.display = "block";
  51. }
  52. function closeNav() {
  53. document.getElementById("mySidenav").style.display = "none";
  54. }
  55. </script>

comments powered by Disqus