Partner - Remove Padding & Margin
By Ahmed Alkuhlani on October 30, 2021
IntermediateAdd this code to CSS in print format
.print-format {
padding: 0.1in;
margin-top: 0mm;
margin-left: 0mm;
}
body {
margin: 0 !important;
border: 0 !important;
padding: 0mm 0mm 0mm 0mm !important;
margin-right: 20mm;
margin-right: 20mm;
}
.value { text-align: right; font-weight: bold;}
.data-field {
text-align: left; font-weight: bold;
}
.section-break { border-bottom: 1px solid #eee; } .section-break:last-child { padding-bottom: 0px; border-bottom: 0px; }
.print-format * {
color: #000 !important;
font-weight: bold;
}
.print-format .alert {
background-color: inherit;
border: 1px dashed #333;
}
.print-format table td > .primary:first-child {
font-weight: bold;
}
.print-format th {
text-align: center;
}
.print-format .table-bordered .thead .th .td{
text-align: center;
}
.print-format .table-bordered,
.print-format .table-bordered > thead > tr > th,
.print-format .table-bordered > tbody > tr > th,
.print-format .table-bordered > tfoot > tr > th,
.print-format .table-bordered > thead > tr > td,
.print-format .table-bordered > tbody > tr > td,
.print-format .table-bordered > tfoot > tr > td {
border: 1px solid #333;
}
.print-format hr {
border-top: 1px solid #333;
}
.print-heading {
border-bottom: 2px solid #333;
}
-------------------
More articles on Customization