I'm trying to insert todays date in the left footer, but it doesn't show. All other headers and footers work. I have the following css:
@page {
size: A4;
margin: 2cm 1cm;
@top-left {
content: flow(header);
}
@bottom-left {
content: flow(footer);
}
@bottom-right {
content: counter(page) ' av ' counter(pages);
font-style: italic;
}
}
#printheader {
flow: static(header);
}
#printfooter {
flow: static(footer);
}
And the following html (roughly)
<div id="printheader">
Header text
</div>
page contents
<div id="printfooter">
<c:set var="theDate" value="<%=new Date() %>"/>
Utskrivet <fmt:formatDate value="${theDate}" pattern="yyyy-MM-dd HH:mm"/>
</div>
@page {
size: A4;
margin: 2cm 1cm;
@top-left {
content: flow(header);
}
@bottom-left {
content: flow(footer);
}
@bottom-right {
content: counter(page) ' av ' counter(pages);
font-style: italic;
}
}
#printheader {
flow: static(header);
}
#printfooter {
flow: static(footer);
}
And the following html (roughly)
<div id="printheader">
Header text
</div>
page contents
<div id="printfooter">
<c:set var="theDate" value="<%=new Date() %>"/>
Utskrivet <fmt:formatDate value="${theDate}" pattern="yyyy-MM-dd HH:mm"/>
</div>