1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<!DOCTYPE html> <style> #canvas { width: 95px; height: 95px; } #negative-margin { display: inline-block; width: 100px; height: 100px; background: green; margin-left: -100px; } </style> <canvas id="canvas"></canvas> <div id="negative-margin"></div>