Advertisement
Ganout

Quête 06 - CSS : box model

Feb 25th, 2020
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.89 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="fr">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Find the precious!</title>
  6. <link rel="stylesheet" href="style.css">
  7. <link href="https://fonts.googleapis.com/css?family=PT+Sans&display=swap" rel="stylesheet">
  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 class="fellows">
  21. <h2><span>Fellows wanted dead</span> (or alive if you want to eat them later)</h2>
  22. </section>
  23. <section class="target">
  24. <article></article>
  25. <article></article>
  26. <article></article>
  27. </section>
  28. <hr>
  29. <form>
  30. <h2>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" rows="5"></textarea>
  35. </form>
  36. </body>
  37. </html>
  38.  
  39. ----------------------------------------------------------------------------------------------------------------------
  40.  
  41. *{
  42. padding: 0;
  43. margin: 0;
  44. }
  45. body {
  46. font-family: 'PT Sans', sans-serif;
  47. color: rgb(150 , 150, 150);
  48. margin: 10px 5px;
  49. }
  50. nav {
  51. background-color: rgb(44, 44, 44);
  52. font-weight: bold;
  53. }
  54. nav ul {
  55. display: flex;
  56. list-style: none;
  57. align-items: center;
  58. }
  59. nav ul li {
  60. padding: 10px;
  61. line-height: 20px;
  62. }
  63. ul li:first-child{
  64. font-size: 20px;
  65. }
  66. .carousel {
  67. height: 200px;
  68. background-color: rgb(235 , 235, 235);
  69. }
  70. .fellows {
  71. height: 100px;
  72. display: flex;
  73. justify-content: center;
  74. align-items: center;
  75. }
  76. .fellows h2 {
  77. font-size: 20px;
  78. }
  79. .fellows h2 span {
  80. font-size: 30px;
  81. }
  82. .target {
  83. display: flex;
  84. justify-content: space-evenly;
  85. align-items: center;
  86. }
  87. .target article {
  88. width: 400px;
  89. height: 500px;
  90. background-color: rgb(235 , 235, 235);
  91. }
  92. hr {
  93. margin: auto;
  94. margin-top: 150px;
  95. margin-bottom: 10px;
  96. border: 1px rgb(44, 44, 44) solid;
  97. width: 95%;
  98. }
  99. form {
  100. height: 300px;
  101. display: flex;
  102. flex-direction: column;
  103. align-content: space-around;
  104. }
  105. form h2 {
  106. margin-left: 30px;
  107. margin-bottom: 30px;
  108. font-size: 30px;
  109. }
  110. form input {
  111. height: 20px;
  112. }
  113. form input, textarea {
  114. width: 80%;
  115. margin: auto;
  116. border: 1px solid black;
  117. padding: 5px;
  118. }
  119. form input:nth-child(4) {
  120. border: 1px solid rgb(150 , 150, 150);
  121. border-radius: 5px;
  122. }
  123.  
  124. /*animations*/
  125.  
  126. nav li:hover {
  127. padding: 9px;
  128. background-color: rgb(235 , 235, 235);
  129. border: 1px solid rgb(150 , 150, 150);
  130. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement