Advertisement
juliusDum

responsive Jules

Mar 6th, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.48 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 class="color">Fellows</li>
  14.                 <li>Contact us</li>
  15.             </ul>
  16.         </nav>
  17.         <section>
  18.             <div class="carousel"></div>
  19.         </section>
  20.         <section>
  21.             <h2>Fellows wanted dead (or alive if you want to eat them later)</h2>
  22.         </section>
  23.         <section class="images">
  24.             <article></article>
  25.             <article></article>
  26.             <article></article>      
  27.         </section>
  28.         <hr>
  29.         <form>
  30.             <h2 class="formulaire">Contact us</h2>
  31.             <ul>
  32.             <li><input id="email" type="email" placeholder="@"></li>
  33.             <li><input id="home" type="text" placeholder="&#8962;"></li>
  34.             <li><input id="defilant" type="text" placeholder="I have seen one of them"></li>
  35.             <li><textarea id="message" placeholder="Your message"></textarea></li>
  36.             </ul>
  37.         </form>
  38.     </body>
  39. </html>
  40. /* version desktop */
  41. * {
  42.     margin: 0px;
  43.     padding: 0px;
  44. }
  45.  
  46. nav ul {
  47.     display: flex;
  48.     list-style-type: none;
  49.     padding: 0 3px;
  50.     background-color: #696969;
  51. }
  52.  
  53.  
  54. li {
  55.     padding: 6px;
  56. }
  57.  
  58. .color {
  59.     background-color: #E7E4E4;
  60.  
  61. }
  62.  
  63. .carousel {
  64.     height: 120px;
  65.     background-color: #EFECEB;
  66. }
  67.    
  68. h2 {
  69.     padding: 30px;
  70.     text-align: center;
  71. }
  72. .images {
  73.     text-align: center;
  74. }
  75. article {
  76.     height: 200px;
  77.     width: 25%;
  78.     padding: 20px;
  79.     margin: 1%;
  80.     display: inline-block;
  81.     background-color: #EFECEB;
  82. }
  83.  
  84. hr {
  85.     color: black;
  86. }
  87.  
  88. form {
  89.     text-align: center;
  90. }
  91.  
  92. .formulaire {
  93.     text-align: left;
  94.     font-size: 40px
  95. }
  96.  
  97. #email {
  98.     width: 70%;
  99. }
  100.  
  101. #home {
  102.     width: 70%;
  103. }
  104.  
  105. #defilant {
  106.     width: 70%;
  107.     border-radius: 3px;
  108. }
  109.  
  110. #message {
  111.     height: 200px;
  112.     width: 90%}
  113.  
  114. @media only screen and (max-width: 961px) {
  115.  
  116.     .carousel {
  117.         display: none;
  118.         height: 120px;
  119.         background-color: #EFECEB;
  120.     }
  121.  
  122.     .images {
  123.         display: none;
  124.         text-align: center;
  125.     }
  126.  
  127.     h2 {
  128.         padding: 30px;
  129.         text-align: center;
  130.         font-size: 50px;
  131.     }
  132.  
  133.     .formulaire {
  134.         text-align: center;
  135.         font-size: 40px;
  136.     }
  137. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement