Advertisement
Guest User

Untitled

a guest
Aug 18th, 2018
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.94 KB | None | 0 0
  1. -- HTML v --
  2.  
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <title>my web</title>
  7. <meta charset="utf-8">
  8. <link rel="stylesheet" type="text/css" href="css/style.css">
  9. </head>
  10. <body>
  11. <div class="containter">
  12. <div class="box-1">
  13. <h1>Welcome to HiyaChan.</h1>
  14. <p>Hey! This is an imageboard for anime/video game fans to lounge and chat. Before you post anything, we suggest you read the <a href="file:///C:/Users/Poison_Xeno/Desktop/css2/csscheatsheet/css/rules.html">rules</a>. </p>
  15. <img src="images/245599593017212.png" src="images" alt="Megumin" height="50" width="50">
  16. </div>
  17. <div class="box-2">
  18. <h2>Boards:</h2>
  19. <p>
  20. <li><p><a href="">/a/</a></p></li>
  21. <li><p><a href="">/j/</a></p></li>
  22. <li><p><a href="">/v/</a></p></li>
  23. <li><p><a href="">/scare/</a></p></li>
  24. <li><p><a href="">/t/</a></p></li>
  25. <li><p><a href="">/m/</a></p></li>
  26. <li><p><a href="">/ot/</a></p></li>
  27. </p>
  28. </div>
  29. </div>
  30. <div class="box-3">
  31. <h2>Options</h2>
  32. <p><a href="">Rules</a></p>
  33. <p><a href="">FAQ</a></p>
  34. <p><a href="">Xeno</a></p>
  35. <p><a href="">Contacts</a></p>
  36. <form action='register_parse.php' method='POST'>
  37. Username: <input type='text' name='username'placeholder='Username'/><br/>
  38. Password : <input type="password" name="password" placeholder="Password"/><br/>
  39. <input type="submit" name="login" value="Register"/>
  40. </form>
  41. </div>
  42. <div class="box-4">
  43. <h2>Recent posts</h2>
  44. <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
  45. tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
  46. quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
  47. consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
  48. cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
  49. proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
  50. </div>
  51. <ul>
  52. <li>
  53. <span>Dark</span>
  54. <span>Light</span>
  55. </li>
  56. </ul>
  57. <div class="end-1">
  58. <hr>
  59. <p>Copyright &copy; 2018 made by S.F.</p>
  60. </div>
  61. <script
  62. src="https://code.jquery.com/jquery-3.3.1.js"></script>
  63. <script type="text/javascript">
  64. $(document).ready(function({
  65. $('ul').click(function(){
  66. $('ul').toggleclass('active')
  67. $('section').toggleclass('dark')
  68. })
  69. })
  70. </script>
  71. </body>
  72. </html>
  73.  
  74. -- css --
  75. body{
  76. background-color:navajowhite;
  77. color:#555555;
  78.  
  79. font-family: Arial, Helvetica, sans-serif;
  80. font-size:17px;
  81. line-height:1.6em;
  82. margin:0;
  83. }
  84.  
  85. a{
  86. text-decoration: none;
  87. color:saddlebrown;
  88. }
  89.  
  90. a:hover{
  91. color:firebrick;
  92. text-decoration: underline;
  93. }
  94.  
  95. .container{
  96. width:80%;
  97. margin:auto;
  98. }
  99.  
  100. .box-1{
  101. background-color:darksalmon;
  102. color:#fff;
  103.  
  104. border-right: 2px chocolate solid;
  105. border-left: 2px chocolate solid;
  106. border-bottom: 2px chocolate solid;
  107. border-top: 2px chocolate solid;
  108.  
  109. padding-left:20px;
  110. padding-bottom:20px;
  111. padding-right:20px;
  112. padding-top:20px;
  113.  
  114. padding:20px;
  115.  
  116. margin-top:20px;
  117. margin-left:20px;
  118. margin-right: 20px;
  119. }
  120.  
  121. .box-2{
  122. background-color:darksalmon;
  123. color:#fff;
  124.  
  125. border-right: 2px chocolate solid;
  126. border-left: 2px chocolate solid;
  127. border-bottom: 2px chocolate solid;
  128. border-top: 2px chocolate solid;
  129.  
  130. padding-left:20px;
  131. padding-bottom:20px;
  132. padding-right:20px;
  133. padding-top:20px;
  134.  
  135. margin-top:20px;
  136. margin-left:20px;
  137. margin-right:1050px;
  138. }
  139.  
  140. .box-3{
  141. background-color:darksalmon;
  142. color:#fff;
  143.  
  144. border-right: 2px chocolate solid;
  145. border-left: 2px chocolate solid;
  146. border-bottom: 2px chocolate solid;
  147. border-top: 2px chocolate solid;
  148.  
  149. padding-left:20px;
  150. padding-bottom:20px;
  151. padding-right:20px;
  152. padding-top:20px;
  153.  
  154. margin-top:10px;
  155. margin-left:10px;
  156. margin-right:1040px;
  157. }
  158.  
  159. .box-4{
  160. background-color:bisque;
  161. color:#saddlebrown;
  162.  
  163. border-right: 5px chocolate solid;
  164. border-left: 5px chocolate solid;
  165. border-bottom: 5px chocolate solid;
  166. border-top: 5px chocolate solid;
  167.  
  168. padding-left:20px;
  169. padding-bottom:20px;
  170. padding-right:20px;
  171. padding-top:20px;
  172.  
  173. margin-top:-1000px;
  174. margin-left:280px;
  175. margin-right:100px;
  176. margin-bottom: 10px;
  177. }
  178.  
  179. .end-1{
  180. margin-bottom: 1px;
  181. margin-top: 850px;
  182. }
  183.  
  184. #grad {
  185. background: linear-gradient(navajowhite, white);
  186. }
  187. section
  188. {
  189. position: absolute;
  190. top: 0;
  191. left: 0;
  192. width: 100%;
  193. height: 100vh;
  194. box-sizing: border-box;
  195. padding: 100px;
  196. }
  197. section.dark
  198. {
  199. background: #262626;
  200. color: #fff
  201. }
  202. ul
  203. {
  204. position: absolute;
  205. top: 20px;
  206. right: 20px;
  207. margin: 0;
  208. padding 0;
  209. width: 100px;
  210. height: 30px;
  211. z-index: 1;
  212. border: 1px solid #000;
  213. cursor: pointer;
  214. overflow: hidden;
  215. }
  216. ul li
  217. {
  218. list-style: none;
  219. width: 100%;
  220. height: 60px;
  221. text-align: center;
  222. text-transform: uppercase;
  223. transition: 0.5s;
  224. }
  225. ul.active li
  226. {
  227. transform: translateY(-30px);
  228. }
  229. ul li span
  230. {
  231. display: block;
  232. height: 30px;
  233. line-height: 30px;
  234. }
  235. ul li span:nth-child(1)
  236. {
  237. background: #262626;
  238. color: #fff;
  239. }
  240.  
  241. made my xeno
  242.  
  243. πš‡πšŽπš—πš˜
  244. #8366
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement