I am facing an issue with two components on my website
<div id="div1">
div1 content
</div>
<div id="div2">
div2 content
</div>
and the CSS styling for these components is as follows:
#div1{
height: 1000px;
}
@media print {
#div1{
display: none;
}
}
The problem arises when I scroll to the very bottom of the page where div2 is located. When I try to print using Ctrl+P, only a blank page appears without showing div2. How can this issue be fixed? Thank you for your help.