I need to print an HTML page with specific content. The content includes a div with some text to be printed. Additionally, I have a footer with a class of divFooter that contains more content.
<div>content to print</div>
The CSS for styling the footer is as follows:
<style type="text/css">
@media screen
{
div.divFooter
{
display: none;
}
}
@media print
{
div.divFooter
{
position: fixed;
bottom: 0;
}
}
</style>
In Internet Explorer and Firefox, the footer is aligned at the bottom, but it does not display correctly in the Chrome browser. Any suggestions on how to fix this issue?