html, body { height: 100%; } #canvas { text-align: center; }