From db5d3bf10e934e86fcdb792f49ae5cf28e1a2a8c Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sat, 3 Dec 2022 15:29:53 +0000 Subject: [PATCH] js: Remove align=center from main
and make it a
Instead of an align=center HTML attribute, we now centre its contents using CSS. Also, this element contains all the important contents of the page, so it seems appropriate to us the HTML5
element for this. --- html/jspage.pl | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/html/jspage.pl b/html/jspage.pl index d52113e..80f3650 100755 --- a/html/jspage.pl +++ b/html/jspage.pl @@ -85,6 +85,10 @@ EOF text-align: center } +main { + text-align: center; +} + /* Inside that form, the main menu bar and every submenu inside it is a
    */ #gamemenu ul { list-style: none; /* get rid of the normal unordered-list bullets */ @@ -294,8 +298,7 @@ EOF #resizable { position: relative; - left: 0; - top: 0; + margin: 0 auto; } #puzzlecanvas { @@ -328,7 +331,7 @@ ${unfinishedheading} ${unfinishedpara}
    -