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

Re: [Public WebGL] Mysterious extra padding below canvas



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.

Regards

-Mark





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;
}
begin:vcard
fn:Mark Callow
n:Callow;Mark
org:HI Corporation;Graphics Lab, Research & Development
adr:Higashiyama 1-4-4, Meguro-ku;;Meguro Higashiyama Bldg 5F;Tokyo;;153-0043;Japan
email;internet:callow_mark@hicorp.co.jp
title:Chief Architect
tel;work:+81 3 3710 9367 x228
tel;fax:+81 3 5773 8660
x-mozilla-html:TRUE
url:http://www.hicorp.co.jp,  http://www.mascotcapsule.com
version:2.1
end:vcard