* { margin:0; } #card { width:320px; height:568px; margin:0 auto; background:url(img/g.jpg) no-repeat; background-size:320px 568px; position:relative; } #myCanvas { /*border:2px solid green; */ position:absolute; left:28px; top:30px; } #p1 { position:absolute; left:28px; top:30px; height:131px; width:260px; font-size:40px; text-align:center; line-height:131px; color:orange; }