eloise87

Css 08

Nov 3rd, 2019
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.50 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Find the precious!</title>
  6. <link rel="stylesheet" href="style.css">
  7. </head>
  8. <body>
  9. <nav>
  10. <ul class="police">
  11. <li>FindThePrecious.com</li>
  12. <li>Fellows</li>
  13. <li>Contact us</li>
  14. </ul>
  15. </nav>
  16. <section>
  17. <div class="carousel"></div>
  18. </section>
  19. <section>
  20. <h2>Fellows wanted dead (or alive if you want to eat them later)</h2>
  21. </section>
  22. <section class="articleSection">
  23. <article class="box">
  24. <img src="https://via.placeholder.com/300">
  25. </article>
  26. <article class="box">
  27. <img src="https://via.placeholder.com/300">
  28. </article>
  29. <article class="box">
  30. <img src="https://via.placeholder.com/300">
  31. </article>
  32. </section>
  33. <form>
  34. <h2 id="titre">Contact us</h2>
  35. <div id="conteneur">
  36. <input type="email" placeholder="@">
  37. <input type="text" placeholder="&#8962;">
  38. <input type="text" placeholder="I have seen one of them">
  39. <textarea placeholder="Your message"></textarea>
  40. </div>
  41.  
  42. <div class="button">
  43. <button type="submit"> Send!
  44. </button>
  45.  
  46.  
  47.  
  48. </div>
  49.  
  50. </form>
  51. <footer class="footer">
  52. <div class="flex-container">
  53. <section class="footerLink">
  54. <p>About us</p>
  55. <p>Fellows</p>
  56. <p>Contact us</p>
  57. </section>
  58. <section class="footerLink">
  59. <p>FAQ</p>
  60. <p>Reward conditions</p>
  61. <p>Legal mentions</p>
  62. </section>
  63. <section class="footerLink">
  64. <p class="s">Sauron4ever.com</p>
  65. <p class="s word">Follow him</p>
  66. </section>
  67. </div>
  68. </footer>
  69. </body>
  70.  
  71. </html>
  72.  
  73.  
  74.  
  75. body {
  76. margin: 0;
  77. padding: 0;
  78. }
  79. ul{
  80. background-color: black;
  81. color: white;
  82. list-style-type: none;
  83. margin: 0;
  84. padding: 0;
  85. overflow: hidden;
  86. position: sticky;
  87. border: 1px solid #e7e7e7;
  88. }
  89.  
  90. li {
  91. display: flex;
  92. flex-direction: row;
  93. align-content: flex-start;
  94. float: left;
  95. border-right: 1px solid #bbb;
  96. padding: 14px 16px;
  97. text-decoration: none;
  98. }
  99.  
  100. li:hover{
  101. background-color: grey;
  102. }
  103.  
  104. li:last-child {
  105. border-right: none;
  106. }
  107. .carousel{
  108. background-color: grey;
  109. height: 150px;
  110. }
  111. section {
  112. width: 100%;
  113. }
  114. .articleSection {
  115. width: 100%;
  116. display: flex;
  117. justify-content: space-around;
  118. flex-flow: row wrap;
  119. align-content: center;
  120. }
  121. article.box {
  122.  
  123. display: inline-block;
  124. justify-content: center space-around;
  125. flex-flow: row wrap;
  126. align-content: center;
  127. }
  128.  
  129. #conteneur{
  130. width: 50%;
  131. }
  132. input {
  133. width: 100%;
  134. }
  135.  
  136. form{
  137. position: relative;
  138. width: 1240px;
  139. margin: 0 auto;
  140. }
  141.  
  142. input, textarea {
  143. width: 300px;
  144. margin: 0;
  145. width: 100%;
  146. box-sizing: border-box;
  147. }
  148. .footer {
  149. display: flex;
  150. flex-direction: column;
  151. flex-grow: 1;
  152. margin: 0;
  153. padding: 0;
  154. left: 0;
  155. bottom: 0;
  156. width: 100%;
  157. background-color: black;
  158. color: white;
  159. text-align: center;
  160. }
  161.  
  162. .button {
  163.  
  164. margin-left: 370px;
  165. display: flex;
  166. padding: 5px;
  167. width:20% ;
  168. flex-direction: row-reverse;
  169.  
  170. }
  171.  
  172. @media (min-width: 200px) and (max-width: 960px) {
  173. body {
  174. max-width: 100vw;
  175. }
  176. .articleSection {
  177. width: 100%;
  178. display: flex;
  179. flex-direction:column;
  180. justify-content: center;
  181. align-content: center;
  182. align-items: center;
  183. flex-wrap: wrap;
  184. }
  185. img {
  186. width: 100%;
  187. }
  188.  
  189. .box{
  190. width: 100%;
  191. }
  192.  
  193. ul.police{
  194. font-size: 10px;
  195. }
  196. form {
  197. max-width: 100%;
  198. }
  199. #conteneur {
  200. min-width: 90%;
  201. padding: 1em;
  202. }
  203. }
  204. @media screen and (min-width: 961px) {
  205. .flex-container{
  206.  
  207. display:flex;
  208. flex-direction: row;
  209. flex-wrap: wrap;
  210. justify-content: space-around;
  211. padding: 3em;
  212. }
  213. .s {
  214. font-weight: bold;
  215. }
  216. .word::after {
  217. content: " also on twitter";
  218. }
  219. .footerLink {
  220. width: 30%;
  221. }
  222. }
Add Comment
Please, Sign In to add comment