Advertisement
1xptolevitico69

Css inset property example

Oct 3rd, 2022
1,025
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.30 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.   <meta charset="UTF-8">
  5.   <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6.   <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7.   <style>
  8.     .topnave {
  9.       position: absolute;
  10.       left: 0;
  11.       top: 10px;
  12.       width: 100%;
  13.     }
  14.  
  15.     .topnave a {
  16.       color: red;
  17.       margin: 0 5px;
  18.       text-decoration: underline;
  19.       font-family: verdana;
  20.       font-weight: 900;
  21.       font-size: 3vw;
  22.     }
  23.  
  24.     .avatar {
  25.       width: 100px;
  26.       display: block;
  27.       margin: 20px auto;
  28.       border-radius: 50%;
  29.       border: 4px double navy;
  30.     }
  31.  
  32.     body {
  33.       margin: 0;
  34.     }
  35.  
  36.     .top {
  37.       width: 100%;
  38.       height: 100vh;
  39.       border: 0;
  40.       outline: 0;
  41.       background-color: white;
  42.     }
  43.  
  44.     #input {
  45.       box-sizing: border-box;
  46.       height: 50px;
  47.       width: 50%;
  48.       font-size: 2vw;
  49.       padding: 0 10px;
  50.       outline: 0;
  51.       border: 0;
  52.       background-color: red;
  53.       border-radius: 10px 0 0 10px;
  54.     }
  55.  
  56.     .search {
  57.       outline: 0;
  58.       height: 50px;
  59.       font-size: 2vw;
  60.       width: 150px;
  61.       text-align: center;
  62.       border: 0;
  63.       color: red;
  64.       background-color: red;
  65.       color: white;
  66.       border-radius: 0 10px 10px 0;
  67.     }
  68.  
  69.     #input::placeholder {
  70.       color: white;
  71.     }
  72.  
  73.     h1 {
  74.       font-size: 3vw;
  75.       font-family: verdana;
  76.     }
  77.  
  78.     @media all and (orientation:portrait) and (max-width:425px) {
  79.       h1 {
  80.         font-size: 9vw;
  81.       }
  82.  
  83.       #input {
  84.         width: 100%;
  85.         height: 40px;
  86.         font-size: 16px;
  87.         border-radius: 10px;
  88.       }
  89.  
  90.       .search {
  91.         font-size: 16px;
  92.         height: 40px;
  93.         margin: 5px 0;
  94.         width: 150px;
  95.         border-radius: 10px;
  96.       }
  97.  
  98.       .topnave a {
  99.         color: red;
  100.         text-decoration: underline;
  101.         font-family: verdana;
  102.         font-weight: 900;
  103.         font-size: 20px;
  104.       }
  105.     }
  106.  
  107.     @media all and (orientation:landscape) and (max-width:768px) {
  108.       .avatar {
  109.         display: none;
  110.       }
  111.  
  112.       h1 {
  113.         font-size: 5vw;
  114.       }
  115.  
  116.       #input {
  117.         width: 90%;
  118.         font-size: 4vw;
  119.         border-radius: 10px;
  120.       }
  121.  
  122.       .search {
  123.         font-size: 4vw;
  124.         margin: 5px 0;
  125.         width: 150px;
  126.         border-radius: 10px;
  127.       }
  128.  
  129.       .topnave a {
  130.         color: red;
  131.         text-decoration: underline;
  132.         font-family: verdana;
  133.         font-weight: 900;
  134.         font-size: 5vw;
  135.       }
  136.     }
  137.   </style>
  138. </head>
  139.  
  140. <body>
  141.   <audio id='audio' loop src='https://1xpto.netlify.app/audio/mediauto.mp3'></audio>
  142.  
  143.   <button class='top'>
  144.  
  145.     <div class='topnave'>
  146.       <a href='https://1xpto.netlify.app/'>Site</a>
  147.       <a href='https://1xpto.netlify.app/media/'>Media</a>
  148.       <img class='avatar' src='https://1xpto.netlify.app/pic/moi.jpg' />
  149.     </div>
  150.  
  151.     <h1>Organic Search</h1>
  152.     <input id='input' type='text' placeholder='Css inset property example' readonly />
  153.     <input class='search' onclick='foo()' type='button' value='Search' />
  154.  
  155.   </button>
  156.  
  157.   <script>
  158.     function foo() {
  159.       window.open('https://1xpto.netlify.app/posts/Css inset property example/local/index.txt');
  160.       audio.play();
  161.     }
  162.   </script>
  163. </body>
  164. </html>
  165.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement