Is it possible to add a footer at the end of every page after a page-break in HTML?
Let's take a look at the HTML code that demonstrates this feature:
<html>
<head>
...
<style>
.container {
width: 695px;
height: 1022px;
display: flex;
flex-direction: column;
margin: 10px;
padding: 40px;
color: #495057;
letter-spacing: 1px;
}
.footer{
position: absolute;
bottom: 0;
width: 100%;
background-color: red;
text-align: center;
page-break-after: always;
}
</style>
</head>
<body>
<div class="container">
...
</div>
<div class="footer">
...
</div>
<body>
</html>
In the current output, the footer appears only on the first page. However, it is desired for it to also appear on subsequent pages after page-breaks.