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

Re: [Public WebGL] Mysterious extra padding below canvas

Credit where credit is due, that was all Gregg :D


On Nov 11, 2010, at 7:10 PM, Mark Callow wrote:

Thanks to Oliver & Gregg for solving the issue. I have no got it working as I want in Chrome but there appears to be a bug in CSS scaling bug in Firefox which I'll describe in a new message.



On 12/11/2010 04:43, Gregg Tavares (wrk) wrote:
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;