canvas { -webkit-user-select: none; /* Chrome all / Safari all */ -moz-user-select: none; /* Firefox all */ -ms-user-select: none; /* IE 10+ */ -o-user-select: none; user-select: none; image-rendering: -moz-crisp-edges; image-rendering: -webkit-crisp-edges; image-rendering: pixelated; image-rendering: crisp-edges; cursor: pointer; width: inherit; height: inherit; } body { margin: 0px; } #status { position: absolute; display: block; } #game { margin: 0px; padding: 0px; background: tan; width: 100%; height: 100px; display: flex; } #leftBar { margin: 0px; padding: 0px; display: inline-flex; background: red; height: inherit; } #rightBar { margin: 0px; padding: 0px; display: inline-flex; background: orange; height: inherit; align-items: center; } .canvasContainer { }