Advertisement
AlexandreCln

Quete 7 responsive

Sep 15th, 2019
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 KB | None | 0 0
  1. ---- HTML :
  2.  
  3. <!DOCTYPE html>
  4. <html lang="en">
  5. <head>
  6. <meta charset="UTF-8">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <title>Find the precious!</title>
  9. <link rel="stylesheet" href="style.css">
  10. </head>
  11. <body>
  12. <nav>
  13. <ul>
  14. <li>FindThePrecious.com</li>
  15. <li class="button">Fellows</li>
  16. <li>Contact us</li>
  17. </ul>
  18. </nav>
  19. <section>
  20. <div class="carousel"></div>
  21. </section>
  22. <section class="wanted">
  23. <h2>Fellows wanted dead <span>(or alive if you want to eat them later)</span></h2>
  24. </section>
  25. <section class="photo">
  26. <article></article>
  27. <article></article>
  28. <article></article>
  29. </section>
  30.  
  31. <hr>
  32.  
  33. <form>
  34. <h2>Contact us</h2>
  35. <input class="mail" type="email" placeholder="@">
  36. <input class="firstname" type="text" placeholder="&#8962;">
  37. <input class="choix" type="text" placeholder="I have seen one of them">
  38. <textarea placeholder="Your message"></textarea>
  39. </form>
  40. <footer>
  41. <a href="">About us</a>
  42. <a href="">Fellows</a>
  43. <a href="">Join our army</a>
  44. <a href="">FAQ</a>
  45. <a href="">Reward conditions</a>
  46. <a href="">Legal mentions</a>
  47. <a href="">Sauron4Ever.com</a>
  48. <a href="">Follow him</a>
  49. </footer>
  50. </body>
  51. </html>
  52.  
  53.  
  54. ---- CSS :
  55.  
  56. nav li {
  57. color: lightgrey;
  58. display: inline-block;
  59. padding: 15px;
  60. border: 1px solid black;
  61. }
  62.  
  63. nav {
  64. background-color: black;
  65. }
  66.  
  67. nav ul {
  68. margin: 0px;
  69. }
  70.  
  71. ul .button {
  72. background-color: lightgrey;
  73. color: #333;
  74. }
  75.  
  76. .carousel {
  77. height: 250px;
  78. background-color: lightgrey;
  79. }
  80.  
  81. .wanted {
  82. margin: 40px;
  83. }
  84.  
  85. .wanted h2 {
  86. text-align: center;
  87. color: grey;
  88. font-size: 1.2em;
  89. }
  90.  
  91. .wanted span {
  92. font-size: 70%;
  93. }
  94.  
  95. .photo {
  96. text-align: center;
  97. margin-bottom: 40px;
  98. }
  99.  
  100. .photo article {
  101. display: inline-block;
  102. background-color: lightgrey;
  103. width: 25%;
  104. height: 500px;
  105. margin: 5px;
  106.  
  107. }
  108.  
  109. form {
  110. width: 50%;
  111. margin: auto;
  112. }
  113.  
  114.  
  115. form input, form textarea {
  116. padding: 0px;
  117.  
  118. }
  119.  
  120. .mail, .firstname {
  121. border: 1px solid black;
  122. padding-bottom: 5px;
  123. margin-bottom: 10px;
  124. width:100%;
  125. }
  126.  
  127. .choix {
  128. width:100%;
  129. box-sizing: border-box;
  130. }
  131.  
  132. textarea {
  133. height: 10em;
  134. width:100%;
  135. margin-top:10px;
  136. padding-top:5px;
  137. border: 1px solid black;
  138. }
  139.  
  140.  
  141. footer {
  142. display: none;
  143. }
  144.  
  145. @media (max-width:961px) {
  146.  
  147.  
  148. .photo, .carousel {
  149. display: none;
  150. }
  151.  
  152. .wanted h2 {
  153. font-size: 1.5em;
  154. padding: 30px;
  155. }
  156.  
  157. form h2 {
  158. text-align: center;
  159. }
  160.  
  161. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement