I want to add footer in the end of the page after every page-break in the html.
here is the html code(here when the content of the container is overflow i want to add footer at that page as well as on the second page it creates after the page-break):
<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>
Output ( as we can see in the output it only gives the footer in the first page but i want it in the second page as well):