Advertisement
Guest User

Untitled

a guest
Feb 6th, 2017
801
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.91 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>waves</title>
  6. <!-- The style.css file allows you to change the look of your web pages.
  7. If you include the next line in all your web pages, they will all share the same look.
  8. This makes it easier to make new pages for your site. -->
  9. <link href="/style.css" rel="stylesheet" type="text/css" media="all">
  10. <style>
  11. body {font-family: "Lato", sans-serif;
  12. background: url(https://images7.alphacoders.com/573/573281.jpg) no-repeat center center fixed;
  13. -webkit-background-size: cover;
  14. -moz-background-size: cover;
  15. -o-background-size: cover;
  16. background-size: cover;}
  17.  
  18. .container{
  19. width:500px;
  20. background-color:white;
  21. margin-left: auto;
  22. margin-right:auto;
  23. margin-top:100px;
  24. border: 1px solid #ccc;
  25. }
  26.  
  27.  
  28. ul.tab {
  29. list-style-type: none;
  30. margin: 0;
  31. padding: 0;
  32. overflow: hidden;
  33. border-bottom: 1px solid #ccc;
  34. background-color: #f1f1f1;
  35. }
  36.  
  37. /* Float the list items side by side */
  38. ul.tab li {float: left;
  39. border-right: 1px solid #ccc;}
  40.  
  41. /* Style the links inside the list items */
  42. ul.tab li a {
  43. display: inline-block;
  44. color: black;
  45. text-align: center;
  46. padding: 14px 16px;
  47. text-decoration: none;
  48. transition: 0.3s;
  49. font-size: 17px;
  50. }
  51.  
  52. /* Change background color of links on hover */
  53. ul.tab li a:hover {
  54. background-color: #cac1ff;
  55. }
  56.  
  57. /* Create an active/current tablink class */
  58. ul.tab li a:focus, .active {
  59. background-color: #bdb2ff;
  60. }
  61.  
  62. /* Style the tab content */
  63. .tabcontent {
  64. display: none;
  65. padding: 6px 12px;
  66.  
  67. border-top: none;
  68. }
  69. .credit{
  70. font-size: 12px;
  71. position: absolute;
  72. bottom: 0;
  73. right: 0;}
  74. </style>
  75. </head>
  76. <body>
  77. <div class="container">
  78.  
  79. <!-- if you need to add another class do it here, and change the title of the tab by changing the text between <a></a> !-->
  80. <ul class="tab">
  81. <li><a href="javascript:void(0)" class="tablinks" onclick="openCity(event, 'About')" id="defaultOpen">About</a></li>
  82. <li><a href="javascript:void(0)" class="tablinks" onclick="openCity(event, 'DFI')">DFI</a></li>
  83. <li><a href="javascript:void(0)" class="tablinks" onclick="openCity(event, 'IDs')">IDs</a></li>
  84. <li><a href="javascript:void(0)" class="tablinks" onclick="openCity(event, 'Interests')">Interests</a></li>
  85. </ul>
  86.  
  87. <div id="About" class="tabcontent">
  88. <h3>About Me</h3>
  89. <!-- change the content of the tab here !-->
  90. <p>Add some text about yourself here.</p>
  91. <p>sample text</p>
  92. </div>
  93.  
  94. <div id="DFI" class="tabcontent">
  95. <h3>Dont Follow If</h3>
  96. <ul style="list-style-type:none;">
  97. <li>you're straight</li>
  98. <li>you think dogs areent gay</li>
  99. <li>you dont think matpat is cool</li></ul>
  100. </div>
  101.  
  102. <div id="IDs" class="tabcontent">
  103. <h3>IDs</h3>
  104. <p>i AM shrek.</p>
  105. <p>i WILL come to your house</p>
  106. <p> and i WILL shrek you</p>
  107. </div>
  108. <div id="Interests" class="tabcontent">
  109. <h3>Interests</h3>
  110. <p>dude im fucking gay.</p>
  111. <p>i love learning to code</p>
  112. </div>
  113. </div>
  114. <!-- please dont delete also feel free to dm me if you have questions about coding !-->
  115. <div class="credit">
  116. <a href="http://twitter.com/tcadsworth">@peachie</a>
  117. <!-- do not touch this !-->
  118. <script>
  119. function openCity(evt, cityName) {
  120. var i, tabcontent, tablinks;
  121. tabcontent = document.getElementsByClassName("tabcontent");
  122. for (i = 0; i < tabcontent.length; i++) {
  123. tabcontent[i].style.display = "none";
  124. }
  125. tablinks = document.getElementsByClassName("tablinks");
  126. for (i = 0; i < tablinks.length; i++) {
  127. tablinks[i].className = tablinks[i].className.replace(" active", "");
  128. }
  129. document.getElementById(cityName).style.display = "block";
  130. evt.currentTarget.className += " active";
  131. }
  132.  
  133. // Get the element with id="defaultOpen" and click on it
  134. document.getElementById("defaultOpen").click();
  135. </script>
  136. </body>
  137. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement