]> git.ekhem.eu.org Git - website.git/commitdiff
Center page in the middle.
authorJakub Czajka <jakub@ekhem.eu.org>
Sun, 18 Jun 2023 15:36:51 +0000 (17:36 +0200)
committerJakub Czajka <jakub@ekhem.eu.org>
Sun, 18 Jun 2023 15:39:51 +0000 (17:39 +0200)
index.html

index 0b4f71777557048e405265348fac01938263c193..25026a52c75a14045ccacdb8a6a93630c8b0f53e 100644 (file)
@@ -3,6 +3,17 @@
 <head>
   <title>Ekhem</title>
   <meta name="viewport" content="heigth=device-height, width=device-width, initial-scale=1.0">
+  <style>
+    html {
+      display: grid;
+      grid-template-columns: auto min(95vw, 700px) auto;
+      height: 100%;
+    }
+    body {
+      grid-column: 2;
+      margin: 10px 0;
+    }
+  </style>
 </head>
 <body>
   <a>Hello World</a>