index.html: vertically center canvas

This commit is contained in:
Matthias Schiffer 2018-11-04 20:03:33 +01:00
parent 9f2e4e6996
commit 7a14936af2
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C

8
dist/index.html vendored
View file

@ -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>