Advertisement
dim0ntei

Task 1

Mar 16th, 2023 (edited)
672
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.91 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <style>
  5.         .rectangle {
  6.             position: absolute;
  7.             top: 50%;
  8.             left: 50%;
  9.             transform: translate(-50%, -50%);
  10.         }
  11.         .rectangle-1 {
  12.             width: 100%;
  13.             height: 100%;
  14.         }
  15.         .rectangle-2 {
  16.             width: 70%;
  17.             height: 70%;
  18.         }
  19.         .rectangle-3 {
  20.             width: 49%;
  21.             height: 49%;
  22.         }
  23.         .rectangle-4 {
  24.             width: 34.3%;
  25.             height: 34.3%;
  26.         }
  27.         .rectangle-5 {
  28.             width: 24.01%;
  29.             height: 24.01%;
  30.         }
  31.     </style>
  32. </head>
  33. <body>
  34.     <div class="rectangle rectangle-1"></div>
  35.     <div class="rectangle rectangle-2"></div>
  36.     <div class="rectangle rectangle-3"></div>
  37.     <div class="rectangle rectangle-4"></div>
  38.     <div class="rectangle rectangle-5"></div>
  39. </body>
  40. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement