I've went ahead and done this, and linked the styles to the page, but its still blank. Is there any other specific things that Kentico might be doing to alter this?
CSS
@media print {
body * {
display: none;
}
#invoice, #invoice * {
display: block !important;
}
}
cshtml page
<link href="/linkTo/style-sheet.css" rel="stylesheet" />
<div class="container pt-3" id="invoice">
<div class="text-center">
<h2 class="orderDetails-heading">Details for Order #@order?.OrderInvoiceNumber</h2>
</div>
<div class="d-md-flex justify-content-between">
<div>
<p class="mb-0">
<strong>Order Placed:</strong>
@order?.OrderDate
</p>
<p class="mb-0">
<strong>Order Number:</strong>
@order?.OrderInvoiceNumber
</p>
<p class="mb-0">
<strong>Order Total:</strong>
@order?.OrderGrandTotal.ToString("C")
</p>
</div>
</div>
</div>
and I know the style sheet is working, because when I comment out the body style, it goes from 3 pages to 1 page, but all pages are staying blank, despite trying to alter #invoce and its children.