aboutsummaryrefslogtreecommitdiffhomepage
path: root/starfield/stars.html
diff options
context:
space:
mode:
Diffstat (limited to 'starfield/stars.html')
-rw-r--r--starfield/stars.html20
1 files changed, 18 insertions, 2 deletions
diff --git a/starfield/stars.html b/starfield/stars.html
index e763898..9cea324 100644
--- a/starfield/stars.html
+++ b/starfield/stars.html
@@ -18,10 +18,24 @@ html{
box-sizing: border-box;
}
-#stars{
+.canvas-container{
width: 100%;
height: 100%;
+ position: absolute;
+ top: 0;
+ left: 0;
+ margin: 0;
+ padding: 0;
+ overflow: hidden;
}
+
+#stars{
+ position: absolute;
+ margin: 0;
+ padding: 0;
+ bottom: 0;
+}
+
</style>
<script>
window.addEventListener("load", function(){
@@ -30,7 +44,9 @@ html{
</script>
</head>
<body>
- <canvas id="stars"></canvas>
+ <div class="canvas-container">
+ <canvas id="stars"></canvas>
+ </div>
</body>
</html>