Guest User

Untitled

a guest
Mar 18th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 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>Abstract Art</title>
  7. <style id="jsbin-css">
  8. .box-1 {
  9. background-color: red;
  10. height: 100px;
  11. width: 300px;
  12. }
  13.  
  14.  
  15. .box-2 {
  16. background-color: green;
  17. height: 400px;
  18. width: 750px;
  19. }
  20.  
  21. .box-3 {
  22. background-color: blue;
  23. height: 990px;
  24. width: 100px;
  25. }
  26. </style>
  27. </head>
  28. <body>
  29.  
  30. <script id="jsbin-javascript">
  31. for (var i = 1; i < 4; i++) {
  32. var boxElement = document.createElement('div');
  33. boxElement.className = 'box-' + i;
  34. document.getElementsByTagName('body')[0].appendChild(boxElement);
  35. }
  36. </script>
  37.  
  38.  
  39. <script id="jsbin-source-css" type="text/css">
  40. .box-1 {
  41. background-color: red;
  42. height: 100px;
  43. width: 300px;
  44. }
  45.  
  46.  
  47. .box-2 {
  48. background-color: green;
  49. height: 400px;
  50. width: 750px;
  51. }
  52.  
  53. .box-3 {
  54. background-color: blue;
  55. height: 990px;
  56. width: 100px;
  57. }
  58. </script>
  59.  
  60. <script id="jsbin-source-javascript" type="text/javascript">for (var i = 1; i < 4; i++) {
  61. var boxElement = document.createElement('div');
  62. boxElement.className = 'box-' + i;
  63. document.getElementsByTagName('body')[0].appendChild(boxElement);
  64. }</script></body>
  65. </html>
Add Comment
Please, Sign In to add comment