body { position: relative; font-size: 5mm } body div { position: absolute; } #title { top : 10mm; left: 100mm; font-size: 10mm; font-weight: bold; letter-spacing: 10mm; } .receiptCustomerName { top : 30mm; } #receiptCustomerName { left: 100mm; } #receiptDate { left: 150mm; } #receiptTotalAmount { border-top: solid 1px; border-bottom: solid 1px; padding-top: 2mm;; padding-bottom: 2mm; top: 50mm; left: 20mm; width: 170mm; } #taxTotalAmount { border-bottom: solid 1px; padding-bottom: 2mm; top: 65mm; left: 140mm; width: 50mm; } #receiptPurpose { top: 70mm; left: 20mm; } #company { top: 130mm; left: 150mm; font-size: 4mm; } #company p { margin: 1mm; } #company .name { font-size: 5mm; }