.clearfix:after { content: ""; display: table; clear: both; } a { color: #5D6975; text-decoration: underline; } body { position: relative; width: 21cm; height: 29.7cm; margin: 0 auto; color: #001028; background: #FFFFFF; font-family: Arial, sans-serif; font-size: 12px; font-family: Arial; } header { padding: 10px 0; margin-bottom: 10px; } #logo { text-align: center; margin-bottom: 10px; } #logo img { width: 90px; } h3 { border-top: 1px solid #5D6975; border-bottom: 1px solid #5D6975; color: #5D6975; font-size: 1.4em; line-height: 1.4em; font-weight: normal; text-align: center; margin: 0 0 20px 0; } #project { padding-top: 10px; padding-bottom: 10px; float: left; } #project-right { padding-top: 10px; padding-bottom: 10px; float: right; padding-right: 30px; } #project span { color: #5D6975; width: 52px; margin-right: 10px; display: inline-block; font-size: 13px; } #company { font-size:13px; padding-right:50px; float: right; } #project div, #company div { white-space: nowrap; } table { width: 100%; border-collapse: collapse; border-spacing: 0; margin-bottom: 20px; } table tr:nth-child(2n-1) td { background: #F5F5F5; } table th, table td { text-align: center; } table th { padding: 5px 20px; color: #5D6975; border-bottom: 1px solid #C1CED9; white-space: nowrap; font-weight: normal; } table .service, table .desc { text-align: left; } table .sum { padding: 15px; text-align: right; } table td { padding: 15px; } table td.service, table td.desc { vertical-align: top; } table td.unit, table td.qty, table td.total { font-size: 1.2em; } table td.grand { border-top: 1px solid #5D6975;; } #notices .notice { color: #5D6975; font-size: 1.2em; } footer { color: #5D6975; width: 100%; height: 30px; position: absolute; bottom: 0; border-top: 1px solid #C1CED9; padding: 8px 0; text-align: center; }