From 2210792577f5753da743f0b702899799ed860a6c Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Tue, 26 May 2020 10:06:53 -0400 Subject: [PATCH] vertically center screen --- public/style.css | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/public/style.css b/public/style.css index 7e6bef4..f61ae26 100644 --- a/public/style.css +++ b/public/style.css @@ -7,11 +7,12 @@ body { } canvas { display: block; - margin: 25px auto; - - /* VM resolution is 800x600 */ - width: 800px; - height: 600px; + margin: auto; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; /* fix fuzziness: https://stackoverflow.com/a/13492784 */ image-rendering: optimizeSpeed;