Advertisement
Mhyrn

findThePrecious.com (CSS responsive)

Mar 4th, 2020
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.66 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <title>Find the precious!</title>
  6.         <link rel="stylesheet" href="style.css">
  7.     </head>
  8.     <body>
  9.         <nav>
  10.             <ul>
  11.                 <li>FindThePrecious.com</li>
  12.                 <li>Fellows</li>
  13.                 <li>Contact us</li>
  14.             </ul>
  15.         </nav>
  16.         <section>
  17.             <div class="carousel"></div>
  18.         </section>
  19.         <section>
  20.             <h2>Fellows wanted dead (or alive if you want to eat them later)</h2>
  21.         </section>
  22.         <section>
  23.           <article><img src="https://via.placeholder.com/350x450" alt="placeholder"></article>
  24.           <article><img src="https://via.placeholder.com/350x450" alt="placeholder"></article>
  25.           <article><img src="https://via.placeholder.com/350x450" alt="placeholder"></article>
  26.         </section>
  27.         <form>
  28.             <h2>Contact us</h2>
  29.             <input type="email" placeholder="@">
  30.             <input type="text" placeholder="&#8962;">
  31.             <input type="text" placeholder="I have seen one of them">
  32.             <textarea placeholder="Your message"></textarea>
  33.         </form>
  34.     </body>
  35. </html>
  36.  
  37. /* Overhaul */
  38.  
  39. /** Barre de Navigation **/
  40. nav{
  41.   margin:0;
  42.   padding:0;
  43.   background:black;
  44.   height:50px;
  45. }
  46. nav ul li{
  47.   margin:0;
  48.   line-height:50px;
  49.   display:inline;
  50.   padding-right:20px;
  51.   color:white;
  52. }
  53. /** Barre de Navigation **/
  54.  
  55.  
  56. /** Section "Fellows wanted dead" **/
  57. section{
  58.   color:grey;
  59.   text-align:center;
  60. }
  61. section h2{
  62.   margin-top:50px;
  63.   margin-bottom:50px;
  64. }
  65.  
  66. /** Section "Fellows wanted dead" **/
  67.  
  68. /** Formulaire de Contact **/
  69. form{
  70.   margin-top:100px;
  71.   border-top: 3px solid grey;
  72. }
  73. input{
  74.   display:block;
  75.   margin-left:auto;
  76.   margin-right:auto;
  77.   font-size:1.8em;
  78.   height:30px;
  79.   margin-top:20px;
  80.   width:80%;
  81. }
  82. textarea{
  83.   display:block;
  84.   margin-left:auto;
  85.   margin-right:auto;
  86.   margin-top:20px;
  87.   height:150px;
  88.   width:80%;
  89. }
  90. /** Formulaire de Contact **/
  91.  
  92. /* Overhaul */
  93.  
  94. /* Desktop */
  95. @media only screen and (min-width:961px){
  96.     form h2{
  97.       color:grey;
  98.       margin-bottom:50px;
  99.     }
  100.     .carousel{
  101.       margin:0;
  102.       height:250px;
  103.       background:grey;
  104.     }
  105.     section article{
  106.       margin:0;
  107.       display:inline;
  108.       padding-right:5px;
  109.       padding-left:5px;
  110.       margin-bottom:100px;
  111.     }
  112.     article img{
  113.       display:inline-block;
  114.       margin:0;
  115.       width:30%;
  116.     }
  117. }
  118. /* Desktop */
  119.  
  120. /* Mobile */
  121. @media only screen and (max-width:961px){
  122.     .carousel{
  123.         display:none;
  124.     }
  125.     section article{
  126.         display:none;
  127.     }
  128.     article img{
  129.         display:none;
  130.     }
  131.     form h2{
  132.         text-align:center;
  133.     }
  134. }
  135. /* Mobile */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement