Advertisement
DSARRAZY

08 - CSS : Flexbox

Mar 5th, 2020
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.86 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  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.  
  21. <section id="fellows">
  22. <h2>Fellows wanted dead (or alive if you want to eat them later)</h2>
  23. </section>
  24. <section class="article">
  25. <article><a href="https://placeholder.com"><img src="https://via.placeholder.com/400" alt="empty"></a></article>
  26. <article><a href="https://placeholder.com"><img src="https://via.placeholder.com/400" alt="empty"></a></article>
  27. <article><a href="https://placeholder.com"><img src="https://via.placeholder.com/400" alt="empty"></a></article>
  28. </section>
  29. <hr>
  30. <h3>Contact us</h3>
  31. <form>
  32. <div class="placeholder">
  33. <div class="email">
  34. <input class="form" type="email" placeholder="@">
  35. </div>
  36. <div class="adress">
  37. <input type="text" placeholder="&#8962;">
  38. </div>
  39. <div class="seen">
  40. <select name="seen">
  41. <option>I have seen one of them</option>
  42. </select>
  43. </div>
  44. <div class="message">
  45. <textarea placeholder="Your message"></textarea>
  46. </div>
  47. <div>
  48. <button class="send" type="button">Send !</button>
  49. </div>
  50. </div>
  51. </form>
  52.  
  53. <footer>
  54. <div class="footer">
  55. <ol>
  56. <li class="about"><a href="https://www.sauron4ever.com/Aboutus">
  57. About us !
  58. </a></li>
  59. <li class="fellows"><a href="https://www.sauron4ever.com/Fellows/">
  60. Fellows
  61. </a></li>
  62. <li class="army"><a href="https://www.www.sauron4ever.com/Joinourarmy/">
  63. Join our army
  64. </a></li>
  65. <li class="faq"><a href="https://www.sauron4ever.com/FAQ">
  66. FAQ
  67. </a></li>
  68. <li class="reward"><a href="https://www.sauron4ever.com/Rewardconditions/">
  69. Reward conditions
  70. </a></li>
  71. <li class="legal"><a href="https://www.www.sauron4ever.com/Legalmentions/">
  72. Legal mentions
  73. </a></li>
  74. <li class="sauron"><a href="https://www.sauron4ever.com/">
  75. Sauron4ever.com
  76. </a></li>
  77. <li class="twitter"><a href="https://www.www.sauron4ever.com/twitter">
  78. Follow him also on twitter
  79. </a></li>
  80. </ol>
  81. </div>
  82. </footer>
  83. </body>
  84. </html>
  85.  
  86. ------------------------------------------------------------------------------------------------------
  87. *{
  88. color: #575757;
  89. }
  90. nav {
  91. background-color: #333130;
  92. height: 25px;
  93. margin-top: -16px;
  94.  
  95. }
  96. ul{
  97. padding-top: 1px;
  98. }
  99. li {
  100. display: inline;
  101. padding: 15px;
  102. color: white;
  103. }
  104.  
  105. li:hover{
  106. background-color: #DEDEDE;
  107. color: black;
  108.  
  109. }
  110.  
  111. .carousel{
  112. box-sizing: content-box;
  113. width: 100%;
  114. height: 200px;
  115. background-color: #DEDEDE;
  116. }
  117.  
  118. section h2{
  119. text-align: center;
  120. }
  121.  
  122. .article {
  123. display: flex;
  124. flex-direction: row;
  125. justify-content: space-around;
  126. }
  127.  
  128. form {
  129. margin: 30px;
  130. }
  131.  
  132.  
  133. .placeholder{
  134. display: flex;
  135. flex-direction: column;
  136. text-align:right;
  137. }
  138.  
  139. input, textarea, select {
  140. width: 80%;
  141. box-sizing: border-box;
  142. }
  143.  
  144. a {
  145. text-decoration: none;
  146. color:white
  147. }
  148.  
  149. footer {
  150. height: 100%;
  151. background-color:#333130;
  152. }
  153.  
  154.  
  155. ol {
  156. height: 150px;
  157. display: flex;
  158. flex-direction: column;
  159. flex-wrap: wrap;
  160. }
  161.  
  162.  
  163.  
  164. @media (max-width: 961px){
  165.  
  166. section h2{
  167. font-size: 200%
  168. }
  169. ol {
  170. height: 400px;
  171. display: flex;
  172. flex-flow: column;
  173. text-align: center;
  174. }
  175. form{
  176. width: 60%;
  177. }
  178.  
  179. .article {
  180. display: flex;
  181. flex-direction: column;
  182. align-items: center;
  183. }
  184.  
  185. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement