Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <style>
- .rectangle {
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- }
- .rectangle-1 {
- width: 100%;
- height: 100%;
- }
- .rectangle-2 {
- width: 70%;
- height: 70%;
- }
- .rectangle-3 {
- width: 49%;
- height: 49%;
- }
- .rectangle-4 {
- width: 34.3%;
- height: 34.3%;
- }
- .rectangle-5 {
- width: 24.01%;
- height: 24.01%;
- }
- </style>
- </head>
- <body>
- <div class="rectangle rectangle-1"></div>
- <div class="rectangle rectangle-2"></div>
- <div class="rectangle rectangle-3"></div>
- <div class="rectangle rectangle-4"></div>
- <div class="rectangle rectangle-5"></div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement