I am in the process of developing a scheduling page within ASP.NET Web Forms, incorporating custom CSS. I have successfully added a print button, but when I try to print the page, the CSS styles are not being applied. How can I resolve this issue?
This is the current layout of my schedule:
https://i.sstatic.net/vC391.png
Here is how the page currently appears when printed:
https://i.sstatic.net/RdktC.png
Below is an excerpt of the CSS code:
.board-layout {
background-color: #173F5F;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
display: grid;
grid-gap: 6px;
padding: 6px;
width: 100%;
height: auto;
border-radius: 6px;
overflow: auto;
box-shadow: 0 3px 0 rgba(9,30,66,.25);
border: 3px solid black;
transition: all .2s ease-in-out;
}
...(rest of CSS code)...
If you experience issues with the CSS not being applied, ensure that the CSS file is linked correctly on the page:
<link rel="stylesheet" href="Content/CustomCSS.css" type="text/css">