diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-11-04 20:03:33 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-11-04 20:03:33 +0100 |
commit | 7a14936af2fb97716a84fdc94cba9caa2827c51d (patch) | |
tree | e5f9563ecbd90e3287c7181bda4932a8705eea1b /dist/index.html | |
parent | 9f2e4e6996fb96d23e1ca29667130a2111a59de5 (diff) | |
download | rpgedit-7a14936af2fb97716a84fdc94cba9caa2827c51d.tar rpgedit-7a14936af2fb97716a84fdc94cba9caa2827c51d.zip |
index.html: vertically center canvas
Diffstat (limited to 'dist/index.html')
-rw-r--r-- | dist/index.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dist/index.html b/dist/index.html index 35def01..c7d97f5 100644 --- a/dist/index.html +++ b/dist/index.html @@ -13,15 +13,21 @@ text-align: center; } + canvas { + position: relative; + top: calc(50% - 384px); + } + * { margin: 0px; padding: 0px; border: 0px; + background: #223; } </style> </head> <body> - <canvas id="rpgedit" width="1024" height="768"></canvas> + <canvas id="rpgedit" width="1024" height="768"></canvas> <script src="bundle.js"></script> </body> </html> |