Guest User

Untitled

a guest
Jul 17th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="sv">
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>Uppgift 10B</title>
  6. <meta name="description" content="Webbutveckling 1 - Uppgift 10B" />
  7. <style id="jsbin-css">
  8. body {
  9. margin: auto;
  10. width: 500px;
  11. background-color: silver;
  12. }
  13. h1 {
  14. text-align: center;
  15. font-family: sans-serif;
  16. }
  17. div {
  18. position: absolute;
  19. width: 400px;
  20. height: 400px;
  21. }
  22. .wrapper {
  23. background-color: oldlace;
  24. position: relative;
  25. width: 500px;
  26. height: 500px;
  27. z-index:-3;
  28. }
  29. .alpha {
  30. background-color: mediumspringgreen;
  31. left: 50px;
  32. top: 50px;
  33. z-index:-2;
  34. }
  35. .beta {
  36. background-color: blueviolet;
  37. transform: rotate(45deg);
  38. width: 280px;
  39. height: 280px;
  40. left: 110px;
  41. top: 110px;
  42. z-index:0;
  43. }
  44. </style>
  45. </head>
  46. <body>
  47. <h1>Uppgift 10B</h1>
  48. <div class="wrapper">
  49. <div class="alpha"></div>
  50. <div class="beta"></div>
  51. </div>
  52.  
  53. <script id="jsbin-source-html" type="text/html"><!DOCTYPE html>
  54. <html lang="sv">
  55. <head>
  56. <meta charset="utf-8" />
  57. <title>Uppgift 10B</title>
  58. <meta name="description" content="Webbutveckling 1 - Uppgift 10B" />
  59. </head>
  60. <body>
  61. <h1>Uppgift 10B</h1>
  62. <div class="wrapper">
  63. <div class="alpha"></div>
  64. <div class="beta"></div>
  65. </div>
  66. </body>
  67. </html>
  68.  
  69. </script>
  70.  
  71. <script id="jsbin-source-css" type="text/css">body {
  72. margin: auto;
  73. width: 500px;
  74. background-color: silver;
  75. }
  76. h1 {
  77. text-align: center;
  78. font-family: sans-serif;
  79. }
  80. div {
  81. position: absolute;
  82. width: 400px;
  83. height: 400px;
  84. }
  85. .wrapper {
  86. background-color: oldlace;
  87. position: relative;
  88. width: 500px;
  89. height: 500px;
  90. z-index:-3;
  91. }
  92. .alpha {
  93. background-color: mediumspringgreen;
  94. left: 50px;
  95. top: 50px;
  96. z-index:-2;
  97. }
  98. .beta {
  99. background-color: blueviolet;
  100. transform: rotate(45deg);
  101. width: 280px;
  102. height: 280px;
  103. left: 110px;
  104. top: 110px;
  105. z-index:0;
  106. }
  107.  
  108. </script>
  109. </body>
  110. </html>
Add Comment
Please, Sign In to add comment