Advertisement
Guest User

My Precious CSS

a guest
Feb 25th, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 KB | None | 0 0
  1. index.html:
  2.  
  3. <!DOCTYPE html>
  4. <html lang="en">
  5. <head>
  6. <meta charset="UTF-8">
  7. <title>Find the precious!</title>
  8. <link rel="stylesheet" href="style.css">
  9. </head>
  10. <body>
  11. <nav>
  12. <ul>
  13. <li> FindThePrecious.com</li>
  14. <li id="fellowBox">Fellows</li>
  15. <li>Contact us</li>
  16. </ul>
  17. </nav>
  18. <section>
  19. <div class="carousel"></div>
  20. </section>
  21. <section>
  22. <h2 id="titleAligned">Fellows wanted dead <h3>(or alive if you want to eat them later)</h3></h2>
  23. </section>
  24. <section class="box">
  25. <article></article>
  26. <article></article>
  27. <article></article>
  28. </section>
  29.  
  30. <hr width= "100%">
  31.  
  32. <form>
  33. <h2>Contact us</h2>
  34. <div id="container">
  35. <label for=email> </label>
  36. <input type="email" name="email" id="email" placeholder="@">
  37. <label for="name"> </label>
  38. <input type="text" name="name" id="name" placeholder="&#8962;">
  39. <label for=box> </label>
  40. <input type="text" name="box" id="box" placeholder="I have seen one of them">
  41. <label for="message"></label>
  42. <textarea name="message" id="message" placeholder="Your message" required class="inputform" rows="6" cols="80"></textarea>
  43. </div>
  44. </form>
  45. </body>
  46. </html>
  47.  
  48.  
  49.  
  50.  
  51. style.css:
  52.  
  53. body{
  54. font-family: helvetica;
  55. }
  56.  
  57. li {
  58. display: inline-block;
  59. margin-right: 30px;
  60. color: #9f9286;
  61. padding: 7px;
  62. }
  63.  
  64. ul {
  65. background-color: #4f4943;
  66. padding-top:0px;
  67. margin-top:0;
  68. padding-bottom:0px;
  69. margin-bottom:0px;
  70. }
  71.  
  72. #fellowBox {
  73. background-color:#e5e5df;
  74. padding-left:40px;
  75. padding-right:40px;
  76. }
  77.  
  78. div.carousel {
  79. height: 250px;
  80. width: 100%;
  81. background-color: powderblue;
  82. position: relative;
  83. padding-top:0px;
  84. margin-top:0;
  85. margin-bottom:40px;
  86. }
  87.  
  88. #titleAligned, h3 {
  89. width: 50%;
  90. display:inline;
  91. color:#383838;
  92. }
  93. #titleAligned{
  94. margin-left: 30%;}
  95.  
  96.  
  97. article {
  98. background-color: #dfdfe6;
  99. margin-left: 30px;
  100. margin-top: 40px;
  101. margin-bottom: 80px;
  102. }
  103.  
  104. .box article:first-child {
  105. float:left;
  106. width:30%;
  107. height:350px;
  108. }
  109. .box article:nth-child(2){
  110. float:left;
  111. width:30%;
  112. height:350px;
  113. }
  114.  
  115. .box article:nth-child(3){
  116. float:left;
  117. width:30%;
  118. height:350px;
  119. }
  120.  
  121. #ligne {
  122. height: 10px;
  123. width: 100px;
  124. }
  125.  
  126. #container{
  127. margin: 0 auto;
  128. width: 600px;
  129. }
  130. input {
  131. width:600px;
  132. margin-bottom: 20px;
  133. }
  134.  
  135. label {
  136. display:none;
  137. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement