The CSS3 GCPM spec defined the following
<style>
.footnote { float: footnote }
</style>
<p>A sentence consists of words. <span class="footnote">Most often.</span>.
rendering as
A sentence consists of words. ¹
¹ Most often. [at the end of (each) page]
when printed (also works for the screen media type, but as long as it works for print I am happy).
Which is exactly what I want to do, no matter how complex, but as far as I am aware no modern browser implements this spec, nor the css-paging spec. Is there any way at all to achieve this effect if I am willing to use javascript. At the very least it would be possible to generate a pdf using some libraries, but if possible I would like to not lose the power of html (things like floats etc.).
And just in case you're wondering, notes are
A note is a string of text placed at the bottom of a page in a book or document or at the end of a chapter, volume or the whole text.
and footnotes are
... notes at the foot of the page while endnotes are collected under a separate heading at the end of a chapter, volume, or entire work.
For more information I refer to the wikipage on notes in typography.
One possible direction a solution can be sought is figuring out the height of a single page, in that case a disparity is noted between the expected height of 29.7cm
and the trial&error height (at least on my system) of 26.1cm
, this can be observed using the following code:
<style>
@page{
margin:0px;
padding:0px;
}
html,body,*{
margin:0px;
padding:0px;
}
p{
border:1px solid black;
height:26.1cm;
}
</style>
and a couple of empty <p>
's. I would consider an explanation of this disparity (thus allowing it's control) to be enough of a solution.
at the bottom and remove the originals.
– ArtOfCode May 06 '14 at 21:57` then at the bottom of each printed page without nearly any support for the `css3-page` module in modern browsers?
– David Mulder May 06 '14 at 21:59