Advertisement
1xptolevitico69

Css Ring

Jul 19th, 2022
952
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.75 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.  
  4. <head>
  5.   <link rel="tag" href="https://1xpto.netlify.app/articles/html/Css Ring">
  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>Css Ring</title>
  10.   <style>
  11.     #ring {
  12.       position: relative;
  13.       box-sizing: border-box;
  14.       width: 90px;
  15.       height: 80px;
  16.       border-radius: 50%;
  17.       background-color: transparent;
  18.       display: inline-block;
  19.       margin: 100px;
  20.       border-bottom: 15px solid gold;
  21.       box-shadow: 0 -5px 0 5px black, 0 1px 0 0 black;
  22.       transform: scale(4);
  23.       transform-origin: 0 0;
  24.     }
  25.  
  26.     .left {
  27.       font-size: 20px;
  28.       display: inline-block;
  29.       transform: rotate(90deg);
  30.     }
  31.  
  32.     .right {
  33.       font-size: 20px;
  34.       display: inline-block;
  35.       transform: rotate(-90deg);
  36.     }
  37.  
  38.     .heart {
  39.       outline: none;
  40.       border: none;
  41.       position: absolute;
  42.       background: transparent;
  43.       transform: translate(25px, 60px);
  44.     }
  45.  
  46.     @media all and (orientation: portrait) and (max-width: 425px) {
  47.       #ring {
  48.         margin: 50px;
  49.         transform: scale(2);
  50.       }
  51.     }
  52.  
  53.     @media all and (orientation: landscape) and (max-width: 538px) {
  54.       #ring {
  55.         margin: 50px;
  56.         transform: scale(2);
  57.       }
  58.     }
  59.  
  60.     @media all and (orientation: landscape) and (min-width: 539px) and (max-width: 768px) {
  61.       #ring {
  62.         margin: 50px;
  63.         transform: scale(2);
  64.       }
  65.     }
  66.   </style>
  67. </head>
  68.  
  69. <body>
  70.  
  71.   <div id='ring'>
  72.     <button class='heart'>
  73.       <span class='left'>&hearts; </span>
  74.       <span class='right'>&hearts; </span>
  75.     </button>
  76.   </div>
  77.  
  78. </body>
  79.  
  80. </html>
  81.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement