Advertisement
Gottfrieden

Untitled

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