Advertisement
1xptolevitico69

1XPTO - How to move objects with CSS (no JS)

Jan 10th, 2022
817
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.52 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.  
  4. <head>
  5.   <link rel="shortcut icon" href="https://1xpto.netlify.app/icons/Favicon.gif" type="image/x-icon">
  6.   <meta charset="UTF-8">
  7.   <meta http-equiv="X-UA-Compatible" content="IE=edge">
  8.   <meta name="viewport" content="width=device-width, initial-scale=1.0">
  9.   <title>1XPTO</title>
  10.   <style>
  11.     .txt {
  12.       font-family: verdana;
  13.       font-weight: 900;
  14.       font-size: 20px;
  15.       color: darkgreen;
  16.       padding-left: 5px;
  17.     }
  18.  
  19.     a {
  20.       display: inline-block;
  21.       text-decoration: none;
  22.       color: white;
  23.       font-size: 16px;
  24.       margin: 5px;
  25.       font-family: verdana;
  26.       font-weight: 900;
  27.       background-color: red;
  28.       padding: 5px 20px;
  29.     }
  30.  
  31.     .square {
  32.       border: 5px solid;
  33.       display: inline-block;
  34.       margin-left: 5px;
  35.     }
  36.  
  37.     .brand {
  38.       margin: 50px;
  39.     }
  40.  
  41.     img {
  42.       width: 200px;
  43.     }
  44.  
  45.     p {
  46.       width: 200px;
  47.       text-align: center;
  48.       font-family: verdana;
  49.       font-weight: 900;
  50.       font-size: 30px;
  51.       color: darkred;
  52.       line-height: 0;
  53.     }
  54.  
  55.     body {
  56.       padding-bottom: 50px;
  57.     }
  58.   </style>
  59. </head>
  60.  
  61. <body>
  62.  
  63.   <div class='brand'>
  64.     <img src='https://1xpto.netlify.app/pics/emoji.png' />
  65.     <p>1XPTO</p>
  66.   </div>
  67.  
  68. <span class='square'></span>
  69. <span class='txt'>How to move objects with CSS (no JS)</span>
  70. <br/>
  71. <a href='https://codepen.io/manuel-andrade/pen/QWqVedZ'>Download</a>
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83. </body>
  84.  
  85. </html>
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement