[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] Mysterious extra padding below canvas

Ok, my bad. I was going with what's worked in the past.

The issue is that <canvas> is by default an inline element.  Inline elements have a baseline.

To fix the issue change the style of the canvas to a block

canvas {
  display: block;