vertically center screen
This commit is contained in:
+6
-5
@@ -7,11 +7,12 @@ body {
|
|||||||
}
|
}
|
||||||
canvas {
|
canvas {
|
||||||
display: block;
|
display: block;
|
||||||
margin: 25px auto;
|
margin: auto;
|
||||||
|
position: absolute;
|
||||||
/* VM resolution is 800x600 */
|
top: 0;
|
||||||
width: 800px;
|
bottom: 0;
|
||||||
height: 600px;
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
|
||||||
/* fix fuzziness: https://stackoverflow.com/a/13492784 */
|
/* fix fuzziness: https://stackoverflow.com/a/13492784 */
|
||||||
image-rendering: optimizeSpeed;
|
image-rendering: optimizeSpeed;
|
||||||
|
|||||||
Reference in New Issue
Block a user