Advertisement
Gottfrieden

Untitled

Mar 3rd, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. HTML :
  2.  
  3. <!DOCTYPE html>
  4. <html lang="en">
  5. <head>
  6. <meta charset="UTF-8">
  7. <title>Find the precious!</title>
  8. <link rel="stylesheet" href="style.css">
  9. </head>
  10. <body>
  11. <nav>
  12. <ul>
  13. <li>FindThePrecious.com</li>
  14. <li>Fellows</li>
  15. <li>Contact us</li>
  16. </ul>
  17. </nav>
  18. <section>
  19. <div class="carousel"></div>
  20. </section>
  21. <section>
  22. <h2 class="fellows-title">Fellows wanted dead <span>(or alive if you want to eat them later)</span></h2>
  23. </section>
  24. <section class="article-section">
  25. <article></article>
  26. <article></article>
  27. <article></article>
  28. </section>
  29. <form>
  30. <h2 class="contact-title">Contact us</h2>
  31. <input type="email" placeholder="@">
  32. <input type="text" placeholder="&#8962;">
  33. <input type="text" placeholder="I have seen one of them">
  34. <textarea placeholder="Your message"></textarea>
  35. </form>
  36. </body>
  37. </html>
  38.  
  39. CSS :
  40.  
  41. h2, p {
  42. color:#424242;
  43. }
  44.  
  45. /* Navigation */
  46. nav {
  47. background-color:#424242;
  48. width:100vw;
  49. height:30px;
  50. }
  51. nav ul {
  52. display:inline-block;
  53. color:#bbbbbb;
  54. padding-left:0px;
  55. margin-top:0px;
  56. margin-bottom:0px;
  57. }
  58. nav ul li {
  59. display:inline;
  60. transition:all 0.2s ease-in-out;
  61. padding-left:10px;
  62. padding-right:10px;
  63. line-height:30px;
  64. height:30px;
  65. position:absolute;
  66. top:8px;
  67. }
  68. nav ul li:hover {
  69. background-color:#bbbbbb;
  70. color:#424242;
  71. }
  72. nav ul li:nth-child(2) {
  73. left:168.88px;
  74. }
  75. nav ul li:nth-child(3) {
  76. left:227px;
  77. }
  78. nav ul li:nth-child(2), nav ul li:nth-child(3) {
  79. font-size:12px;
  80. }
  81.  
  82. /* Carousel */
  83. .carousel {
  84. width:100%;
  85. height:150px;
  86. background-color: #efefef;
  87. }
  88.  
  89. /* Fellows wanted */
  90. .fellows-title {
  91. text-align:center;
  92. margin:25px 0;
  93. }
  94. .fellows-title span {
  95. font-size:12px;
  96. }
  97. article {
  98. width:calc(33% - 11px);
  99. height:250px;
  100. display:inline-block;
  101. margin-left:5px;
  102. margin-right:5px;
  103. background-color:#efefef;
  104. }
  105.  
  106. /* Contact */
  107. .contact-title {
  108. margin:25px 0;
  109. position:relative;
  110. }
  111. .contact-title::before {
  112. position:absolute;
  113. content:'';
  114. width:100%;
  115. height:1px;
  116. background-color:#424242;
  117. left:0;
  118. margin-top:-10px;
  119. }
  120.  
  121. /* Formulaire */
  122. input, textarea {
  123. display:block;
  124. width:80%;
  125. margin:10px auto;
  126. }
  127. textarea {
  128. height:100px;
  129. }
  130.  
  131. /* RESPONSIVE DESIGN */
  132. @media all and (max-width:960px) {
  133. .carousel {
  134. display:none;
  135. }
  136. .article-section {
  137. display:none;
  138. }
  139. h2.fellows-title {
  140. font-size:2em;
  141. }
  142. h2.fellows-title span {
  143. font-size:16px;
  144. }
  145. .contact-title {
  146. text-align:center;
  147. }
  148. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement