Advertisement
actix

GCA_WCS_Q688_CSS

Feb 29th, 2020
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 KB | None | 0 0
  1. /* --- 2 fichiers a la suite , 1 - HTML , 2 - HTML ----*/
  2.  
  3. /* --- index.html --> HTML -----------------------------*/
  4.  
  5. <!DOCTYPE html>
  6. <html lang="en">
  7. <head>
  8. <meta charset="UTF-8">
  9. <title>Find the precious!</title>
  10. <link rel="stylesheet" href="style.css">
  11. </head>
  12. <body>
  13. <nav >
  14. <ul>
  15. <li>FindThePrecious.com</li>
  16. <li>Fellows</li>
  17. <li>Contact us</li>
  18. </ul>
  19. </nav>
  20. <section>
  21. <div class="carousel"></div>
  22. </section>
  23. <section class="fellow">
  24. <h2>Fellows wanted dead</h2><h5>(or alive if you want to eat them later)<h5>
  25. </section>
  26. <section>
  27. <article></article>
  28. <article></article>
  29. <article></article>
  30. </section>
  31.  
  32. <form>
  33. <hr></hr>
  34. <h2>Contact us</h2>
  35. <input type="email" placeholder="@">
  36. <input type="text" placeholder="&#8962;">
  37. <input type="text" placeholder="I have seen one of them">
  38. <textarea placeholder="Your message"></textarea>
  39. </form>
  40. </body>
  41. </html>
  42.  
  43. /* --- Fin HTML ----------------------------------------*/
  44.  
  45.  
  46.  
  47.  
  48. /* --- style.css --> CSS -------------------------------*/
  49.  
  50. html {
  51. background: black;
  52. }
  53. body {
  54. height: 100%;
  55. width: 40%;
  56. padding: 10px;
  57. margin-left: 30%;
  58. margin-right: 30%;
  59. background: white;
  60. }
  61.  
  62. /*--------------------- Menu titre -----------------------------------------*/
  63. nav{
  64. width: 100%;
  65. height: 40px;
  66. background: #21262e;
  67. top: 0;
  68. margin:0;
  69.  
  70. }
  71.  
  72. ul{
  73. height: 100%;
  74. margin:0px;
  75. line-height:40px;
  76. display: block;
  77. }
  78.  
  79. li{
  80. display: inline-block;
  81. height: 100%;
  82. padding-left: 15px;
  83. padding-right: 15px;
  84. list-style: none;
  85. color:White;
  86. }
  87.  
  88. li:hover{
  89. background: white;
  90. color:#21262e;
  91. }
  92.  
  93. /*--------------------- bloc 1 caroussel -------------------------------------*/
  94.  
  95. div.carousel{
  96.  
  97. width: 100%;
  98. height: 18vh;
  99. background: #F5F5F5;
  100.  
  101.  
  102. }
  103.  
  104. /*--------------------- titre Fellows ----------------------------------------*/
  105. section.fellow {
  106. text-align: center;
  107. margin-bottom:20px;
  108. margin-top:30px;
  109. }
  110. section.fellow h2 {
  111. display:inline;
  112. font-size: large;
  113. }
  114. section.fellow h5 {
  115. display:inline;
  116. font-size: small;
  117. text-align:left;
  118. }
  119.  
  120. /*--------------------- article ---------------------------------------------*/
  121. article {
  122. display: inline-block;
  123. height: 28vh;
  124. max-height: 400px;
  125. width : 30%;
  126. margin-left: 1%;
  127. background: #F5F5F5;
  128. vertical-align: middle;
  129. }
  130.  
  131. article:first-child {
  132. margin-left: 3%;
  133. }
  134. article:last-child {
  135. margin-right: 3%;
  136. }
  137.  
  138.  
  139. /*--------------------- formulaire ------------------------------------------*/
  140.  
  141. form {
  142. width: 100%;
  143. margin-top: 100px;
  144. }
  145.  
  146. form h2 {
  147. text-align: left;
  148. }
  149.  
  150. input {
  151. width: 80%;
  152. text-align :left;
  153. margin-left: 10%;
  154. margin-bottom: 10px;
  155. }
  156.  
  157. textarea {
  158. width: 80%;
  159. height: 13vh;
  160. text-align : left;
  161. margin-left : 10%;
  162. }
  163.  
  164. /* --- Fin CSS -----------------------------------------*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement