tips-html-background.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <!-- Licensed under a BSD license. See license.html for license -->
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
  7. <title>Three.js - HTML Background</title>
  8. <style>
  9. html {
  10. box-sizing: border-box;
  11. }
  12. *, *:before, *:after {
  13. box-sizing: inherit;
  14. }
  15. html, body {
  16. height: 100%;
  17. margin: 0;
  18. color: white;
  19. font-size: 20pt;
  20. }
  21. h1 {
  22. font-family: sans-serif;
  23. }
  24. #background {
  25. width: 100%;
  26. height: 100%;
  27. display: block;
  28. position: fixed;
  29. left: 0;
  30. top: 0;
  31. z-index: -1;
  32. pointer-events: none;
  33. border: none;
  34. }
  35. #content {
  36. padding: 1em;
  37. }
  38. #content>* {
  39. max-width: 700px;
  40. margin-left: auto;
  41. margin-right: auto;
  42. }
  43. a {
  44. color: lightblue;
  45. }
  46. a:visited {
  47. color: lightcoral;
  48. }
  49. a:hover {
  50. color: magenta;
  51. }
  52. </style>
  53. </head>
  54. <body>
  55. <iframe id="background" src="responsive.html"></iframe>
  56. <div id="content">
  57. <h1>Beautiful Cubes</h1>
  58. <p>
  59. <b>Cubes are beautiful</b>. You can have an entire planet of them, for instance.
  60. </p><p>
  61. How cool is that? (A bit confusing, honestly. I have always felt as though cubes had a tendency to be a little too cool and overly realistic. Like an endless collection of super-realistic robots… But I guess it is part of what makes them so interesting.)
  62. </p><p>
  63. So maybe there's a limit to what the human imagination can do for me.
  64. </p><p>
  65. That can't hurt.
  66. </p><p>
  67. Well then… let's break it down.
  68. </p><p>
  69. Stardust
  70. </p><p>
  71. I know a lot of you are saying: You can't, because you will get stuck with something that's "too realistic." Well, I have a very real suggestion: Just don't be that dude. In fact, let's be very specific: If you have to do something, let the actual thing change. If it's a little weird to have a space ship, or a spaceship you have to fly, or … well, you probably already are.
  72. </p><p>
  73. Forget about all of the sci-fi stuff. Space. No sense hiding that from me.
  74. </p><p>
  75. The space in my own home was never real-world. It was never something that a person might have done. It was something that only seemed plausible to me. There was only one "space craft," and if you could figure
  76. </p><p>
  77. <b>Cubes are beautiful</b>. Don't underestimate a nice stack of cubes.
  78. </p><p>
  79. If you decide to stack more than one cube, don't forget to use a stack of cubes as a guide to follow to make a tight fit. If a bunch of cubes are stacked too close together, the edges will stick out which will make for a tight fit!
  80. </p><p>
  81. Once again, if you decide you don't want to stack your boxes you can place another stack of cubes along the edge.
  82. </p><p>
  83. And you are done! The process is super simple and simple it's the easy stuff to set up.
  84. </p><p>
  85. But what if you don't like the size of the boxes?
  86. </p><p>
  87. You see, in the old days, a box was a solid block of wood, plastic or ceramic with an outer layer of cardboard.
  88. </p><p>
  89. In the 1990s, wood became the new material and in this method, the cardboard and wood are joined together so that they can both become a floor.
  90. </p><p>
  91. But some people don't like to use just the plastic/carpet layer. And with those people, these cubes are more likely to get wet.
  92. </p><p>
  93. So how does this stack?
  94. </p><p>
  95. From: <a href="https://talktotransformer.com/">Talk to Transformer</a>
  96. </p>
  97. </div>
  98. </div>
  99. </body>
  100. </html>