Advertisement
alpeltz

amor

Apr 2nd, 2017
662
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.62 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>amor</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. <link href="https://fonts.googleapis.com/css?family=Oswald|Raleway" rel="stylesheet">
  11. <style>
  12.  
  13. /* THEME BY PEACH
  14. FREE TO USE BUT PLEASE DONT DELETE CREDIT*/
  15.  
  16. /*edit the background image and color*/
  17.  
  18. body {
  19. background: url(https://68.media.tumblr.com/75db6e5ad9e245f1db5c729d97d6ca28/tumblr_o2b0g1lQrK1v52d8co1_500.jpg) no-repeat center center fixed;
  20. -webkit-background-size: cover;
  21. -moz-background-size: cover;
  22. -o-background-size: cover;
  23. background-size: cover;
  24. color:#6d6d6d;
  25. }
  26.  
  27. /*edit bg color of container, width of container, height, distance from top, outline */
  28.  
  29. .container{
  30. background-color:#f2f2f2;
  31. width:450px;
  32. height:300px;
  33. margin-top:100px;
  34. outline:4px solid #db7676;
  35. margin-left: auto;
  36. margin-right:auto;
  37. }
  38.  
  39. /* change width and height of navigation, and background color of navi */
  40. .tab {
  41. width:100px;
  42. height:300px;
  43. background-color: #ededed;
  44. border-right: 1px solid #ccc;
  45. list-style-type: none;
  46. margin: 0;
  47. padding: 0;
  48. overflow: hidden;
  49. float:left;
  50. position:relative;
  51. z-index: 1;
  52. }
  53.  
  54.  
  55. /* change color of navigation text, text alignment, font details*/
  56. .tab p a {
  57. color: black;
  58. text-align: center;
  59. font-size: 19px;
  60. font-family: 'Raleway', sans-serif;
  61. font-variant:small-caps;
  62. padding: 14px 16px;
  63. display: block;
  64. text-decoration: none;
  65. transition: 0.3s;
  66. }
  67.  
  68. /* Change background color of links on hover */
  69. .tab p a:hover {
  70. background-color: #db7676;
  71. }
  72.  
  73. /* change background color of the active tab */
  74. .tab p a:focus, .active {
  75. background-color:#bc3838;
  76.  
  77. }
  78.  
  79. /* change text alignment, and font of the body content */
  80. .tabcontent {
  81. text-align:left;
  82. font-family: 'Raleway', sans-serif;
  83. display: none;
  84. padding: 6px 12px;
  85. overflow: auto;
  86. }
  87.  
  88. /* change font of the heading titles*/
  89. h3{
  90. font-family: 'Oswald', sans-serif;
  91. }
  92.  
  93.  
  94. /*slide in from left animation*/
  95.  
  96. .w3-animate-left{position:relative;animation:animateleft 0.7s}
  97. @keyframes animateleft{from{left:-100px;opacity:0} to{left:0;opacity:1}}
  98.  
  99.  
  100. /*PLEASE DONT CHANGE*/
  101. .credit{
  102. font-size: 12px;
  103. position: absolute;
  104. bottom: 0;
  105. right: 0;
  106. color:gray;
  107. }
  108.  
  109. </style>
  110. </head>
  111.  
  112. <body>
  113. <div class="container">
  114.  
  115. <div class="tab">
  116. <!-- you can change the title of the tabs here, as the link name !-->
  117. <p><a href="javascript:void(0)" class="tablinks" onclick="openCity(event, 'About')" id="defaultOpen">about</a>
  118. <a href="javascript:void(0)" class="tablinks" onclick="openCity(event, 'DFI')">dfi</a>
  119. <a href="javascript:void(0)" class="tablinks" onclick="openCity(event, 'IDs')">ids</a>
  120. <a href="javascript:void(0)" class="tablinks" onclick="openCity(event, 'Interests')">interests</a></p>
  121. </div>
  122.  
  123.  
  124. <div id="About" class="tabcontent w3-animate-left">
  125. <h3>About Me</h3>
  126. <p>Add some text about yourself here.</p>
  127. <p>sample text</p>
  128. <p><a href="http://pastebin.com/Ecjq2Ubq">pastebin</a></p>
  129. </div>
  130.  
  131.  
  132. <div id="DFI" class="tabcontent w3-animate-left">
  133. <h3>Dont Follow If</h3>
  134. <ul>
  135. <li>hello</li>
  136. <li>this is a list</li>
  137. <li>sample sample</li></ul>
  138. </div>
  139.  
  140.  
  141. <div id="IDs" class="tabcontent w3-animate-left">
  142. <h3>IDs</h3>
  143. <p>ID 1.</p>
  144. <p>ID 2</p>
  145. <p>ID 3</p>
  146. </div>
  147.  
  148.  
  149. <div id="Interests" class="tabcontent w3-animate-left">
  150. <h3>Interests</h3>
  151. <p>sample text here</p>
  152. <p>hi </p>
  153. </div>
  154. </div>
  155.  
  156. <!-- PLEASE DONT DELETE !-->
  157. <div class="credit">
  158. <a href="http://twitter.com/princesspcach">@peachie</a></div>
  159.  
  160. <!-- dont touch this code!-->
  161. <script>
  162. function openCity(evt, cityName) {
  163. var i, tabcontent, tablinks;
  164. tabcontent = document.getElementsByClassName("tabcontent");
  165. for (i = 0; i < tabcontent.length; i++) {
  166. tabcontent[i].style.display = "none";
  167. }
  168. tablinks = document.getElementsByClassName("tablinks");
  169. for (i = 0; i < tablinks.length; i++) {
  170. tablinks[i].className = tablinks[i].className.replace(" active", "");
  171. }
  172. document.getElementById(cityName).style.display = "block";
  173. evt.currentTarget.className += " active";
  174. }
  175.  
  176. // Get the element with id="defaultOpen" and click on it
  177. document.getElementById("defaultOpen").click();
  178. </script>
  179. </body>
  180. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement