Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="sv">
- <head>
- <meta charset="utf-8" />
- <title>Uppgift 10B</title>
- <meta name="description" content="Webbutveckling 1 - Uppgift 10B" />
- <style id="jsbin-css">
- body {
- margin: auto;
- width: 500px;
- background-color: silver;
- }
- h1 {
- text-align: center;
- font-family: sans-serif;
- }
- div {
- position: absolute;
- width: 400px;
- height: 400px;
- }
- .wrapper {
- background-color: oldlace;
- position: relative;
- width: 500px;
- height: 500px;
- z-index:-3;
- }
- .alpha {
- background-color: mediumspringgreen;
- left: 50px;
- top: 50px;
- z-index:-2;
- }
- .beta {
- background-color: blueviolet;
- transform: rotate(45deg);
- width: 280px;
- height: 280px;
- left: 110px;
- top: 110px;
- z-index:0;
- }
- </style>
- </head>
- <body>
- <h1>Uppgift 10B</h1>
- <div class="wrapper">
- <div class="alpha"></div>
- <div class="beta"></div>
- </div>
- <script id="jsbin-source-html" type="text/html"><!DOCTYPE html>
- <html lang="sv">
- <head>
- <meta charset="utf-8" />
- <title>Uppgift 10B</title>
- <meta name="description" content="Webbutveckling 1 - Uppgift 10B" />
- </head>
- <body>
- <h1>Uppgift 10B</h1>
- <div class="wrapper">
- <div class="alpha"></div>
- <div class="beta"></div>
- </div>
- </body>
- </html>
- </script>
- <script id="jsbin-source-css" type="text/css">body {
- margin: auto;
- width: 500px;
- background-color: silver;
- }
- h1 {
- text-align: center;
- font-family: sans-serif;
- }
- div {
- position: absolute;
- width: 400px;
- height: 400px;
- }
- .wrapper {
- background-color: oldlace;
- position: relative;
- width: 500px;
- height: 500px;
- z-index:-3;
- }
- .alpha {
- background-color: mediumspringgreen;
- left: 50px;
- top: 50px;
- z-index:-2;
- }
- .beta {
- background-color: blueviolet;
- transform: rotate(45deg);
- width: 280px;
- height: 280px;
- left: 110px;
- top: 110px;
- z-index:0;
- }
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment