@media print{ body{ width: 21cm; height: 29.7cm; } } div.but_bul_court { width: 17cm; display: grid; grid-template-columns: 6cm 11cm; font-size: 11pt; } #infos_etudiant { grid-column: 1; grid-row: 1; border-radius: 3mm; border: 1px solid black; background-color: white; padding: 5mm; } .nom { font-weight: bold; font-size: 14pt; } #logo { grid-column: 2; grid-row: 1; justify-self: end; } #logo img { text-align: right; height: 3cm; } div.but_bul_court table { border-collapse: collapse; border: 2px solid black; } div.but_bul_court table th, div.but_bul_court table td { background-color: white; border: 1px solid black; /* Thin black border between cells */ padding: 2px 4px 2px 4px; /* Padding inside the cells */ } table td.col_ue { width: 18mm; } #ues { grid-row: 2; grid-column: 1/3; justify-self: end; margin-top: 5mm; margin-bottom: 5mm; } #ues tr.titre_table th { background-color: rgb(183,235,255); padding: 2mm; } tr.titres_ues td, tr.jury td { font-weight: bold; } table.resultats_modules { width: 100%; } #ressources { grid-row: 3; grid-column: 1/3; margin-bottom: 5mm; width: 100%; } #ressources tr.titres_ues td:first-child { background-color: rgb(255, 192, 0); } #saes { grid-row: 4; grid-column: 1/3; margin-bottom: 5mm; width: 100%; } #saes tr.titres_ues td:first-child { background-color: rgb(176, 255, 99); } #row_situation { grid-row: 5; grid-column: 1/3; display: grid; grid-template-columns: auto auto; } #cursus_etud, #situation { grid-row: 1; } #situation { background-color: white; justify-self: end; margin-left: 1cm; border-radius: 3mm; border: 1px solid black; padding: 5mm; } #footer { grid-row: 6; grid-column: 1/3; margin-top: 5mm; font-size: 9pt; font-style: italic; } .but_bul_court .cursus_but { margin-left: 0px; }