Guest User

Untitled

a guest
Dec 11th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.38 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width">
  6. <title>JS Bin</title>
  7. <style id="jsbin-css">
  8. #canvas {
  9. width: 300px;
  10. height: 300px;
  11. background-color: ivory;
  12. }
  13.  
  14. #first-row {
  15. height: 75%;
  16. width: 100%;
  17.  
  18. }
  19.  
  20. #big-rectangle {
  21. height: 100%;
  22. width: 75%;
  23. }
  24.  
  25. .red {
  26. background-color: red;
  27. }
  28.  
  29. .right {
  30. float: right;
  31. }
  32.  
  33. .black {
  34. background-color: black;
  35. }
  36.  
  37. #first-divider {
  38. height: 100%;
  39. width: 3%;
  40. }
  41.  
  42. .white {
  43. background-color: white;
  44. }
  45.  
  46. #second-divider {
  47. height: 3%;
  48. width: 100%;
  49. }
  50.  
  51. #first-medium-rectangle {
  52. height: 48.5%;
  53. width: 100%;
  54. }
  55.  
  56. #second-medium-rectangle {
  57. height: 48.5%;
  58. width: 100%;
  59. }
  60. #first-column {
  61. height: 100%;
  62. width: 22%;
  63. }
  64.  
  65.  
  66. #second-row {
  67. height: 3%;
  68. width: 100%;
  69. }
  70.  
  71. #third-row {
  72. height: 22%;
  73. width: 100%;
  74. }
  75.  
  76. #last-column {
  77. height: 100%;
  78. width: 5%;
  79. }
  80.  
  81. #first-small-rectangle {
  82. height: 45%;
  83. width: 100%;
  84. }
  85.  
  86. #small-divider {
  87. height: 10%;
  88. width: 100%;
  89. }
  90.  
  91. #second-small-rectangle {
  92. height: 45%;
  93. width: 100%;
  94. background-color: yellow;
  95. }
  96.  
  97. #twin-divider {
  98. height: 100%;
  99. width: 3%;
  100. }
  101.  
  102. #big-white-rectangle {
  103. height: 100%;
  104. width: 67%;
  105. background-color: white;
  106. }
  107.  
  108. #blue-rectangle {
  109. height: 100%;
  110. width: 22%;
  111. background-color: blue;
  112. float: left;
  113. }
  114. </style>
  115. </head>
  116. <body>
  117. <div id="canvas">
  118.  
  119. <div id="first-row">
  120. <div id="big-rectangle" class="red right"></div>
  121. <div id="first-divider" class="black right"></div>
  122.  
  123. <div id="first-column" class="white right">
  124. <div id="first-medium-rectangle"></div>
  125. <div id="second-divider" class="black"></div>
  126. <div id="second-medium-rectangle"></div>
  127. </div>
  128.  
  129.  
  130.  
  131. </div>
  132.  
  133. <div id="second-row" class="black"></div>
  134.  
  135. <div id="third-row">
  136. <div id="last-column" class="white right">
  137. <div id="first-small-rectangle"></div>
  138. <div id="small-divider" class="black"></div>
  139. <div id="second-small-rectangle"></div>
  140.  
  141.  
  142.  
  143. </div>
  144. <div id="twin-divider" class="black right"></div>
  145. <div id="big-white-rectangle" class="red right"></div>
  146. <div id="blue-rectangle" class="red right"></div>
  147. <div id="twin-divider" class="black right"></div>
  148. </div>
  149.  
  150.  
  151.  
  152. </div>
  153.  
  154.  
  155.  
  156. <script id="jsbin-source-css" type="text/css">#canvas {
  157. width: 300px;
  158. height: 300px;
  159. background-color: ivory;
  160. }
  161.  
  162. #first-row {
  163. height: 75%;
  164. width: 100%;
  165.  
  166. }
  167.  
  168. #big-rectangle {
  169. height: 100%;
  170. width: 75%;
  171. }
  172.  
  173. .red {
  174. background-color: red;
  175. }
  176.  
  177. .right {
  178. float: right;
  179. }
  180.  
  181. .black {
  182. background-color: black;
  183. }
  184.  
  185. #first-divider {
  186. height: 100%;
  187. width: 3%;
  188. }
  189.  
  190. .white {
  191. background-color: white;
  192. }
  193.  
  194. #second-divider {
  195. height: 3%;
  196. width: 100%;
  197. }
  198.  
  199. #first-medium-rectangle {
  200. height: 48.5%;
  201. width: 100%;
  202. }
  203.  
  204. #second-medium-rectangle {
  205. height: 48.5%;
  206. width: 100%;
  207. }
  208. #first-column {
  209. height: 100%;
  210. width: 22%;
  211. }
  212.  
  213.  
  214. #second-row {
  215. height: 3%;
  216. width: 100%;
  217. }
  218.  
  219. #third-row {
  220. height: 22%;
  221. width: 100%;
  222. }
  223.  
  224. #last-column {
  225. height: 100%;
  226. width: 5%;
  227. }
  228.  
  229. #first-small-rectangle {
  230. height: 45%;
  231. width: 100%;
  232. }
  233.  
  234. #small-divider {
  235. height: 10%;
  236. width: 100%;
  237. }
  238.  
  239. #second-small-rectangle {
  240. height: 45%;
  241. width: 100%;
  242. background-color: yellow;
  243. }
  244.  
  245. #twin-divider {
  246. height: 100%;
  247. width: 3%;
  248. }
  249.  
  250. #big-white-rectangle {
  251. height: 100%;
  252. width: 67%;
  253. background-color: white;
  254. }
  255.  
  256. #blue-rectangle {
  257. height: 100%;
  258. width: 22%;
  259. background-color: blue;
  260. float: left;
  261. }
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271. </script>
  272. </body>
  273. </html>
Add Comment
Please, Sign In to add comment