index.html: vertically center canvas
This commit is contained in:
parent
9f2e4e6996
commit
7a14936af2
1 changed files with 7 additions and 1 deletions
8
dist/index.html
vendored
8
dist/index.html
vendored
|
@ -13,15 +13,21 @@
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
canvas {
|
||||||
|
position: relative;
|
||||||
|
top: calc(50% - 384px);
|
||||||
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
border: 0px;
|
border: 0px;
|
||||||
|
background: #223;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<canvas id="rpgedit" width="1024" height="768"></canvas>
|
<canvas id="rpgedit" width="1024" height="768"></canvas>
|
||||||
<script src="bundle.js"></script>
|
<script src="bundle.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Reference in a new issue