<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>
<html>
<head>
  <style type="text/css">
	/*<![CDATA[ */

    /* Footnote call in the body text */
    .my-footnote:footnote-call {
        content: counter(footnote) ")";
        /*font-size: 90%;*/
        vertical-align: super;
        line-height: none;
        margin-left: 0.1em;
    }

    /* Link to footnote text (appears 'under' the 
       footnote call in the body text) */
    .my-footnote-link {
        content: "\A0\A0\A0\A0";
        margin-right: -1em;
        text-decoration: none;
    }

    /* Footnote marker in the footnote area */
    .my-footnote:footnote-marker {
        margin-right: 0.3em;
    }

    /* Container for one footnote in the footnote area */
    .my-footnote {
        float: footnote;
        counter-increment: footnote;
        margin: 0 0 0 3em;
        padding: 0;
        font-size: 80%;
    }

    /* Backlink to footnote the footnote call */
    .my-footnote-backlink {
        content: "\A0";
        display: inline-block;
        width: 2em;
        margin-left: -2em;
        text-decoration: none;
    }

    /* Paragraphs in footnote text */
    .my-footnote p {
        margin-bottom: 0em;
        margin-top: 0em;
    }

    /* Line above footnote area */
    @page {
        @footnotes {
            border-top: 0.5pt solid black;
            border-clip: 5cm;
            margin-top: 0.5em;
            padding-top: 0.5em;
        }
    }

  	/*]]>*/
  </style>
</head>
<body>

<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat.<a id="my-footnote-ref:1" href="#my-footnote:1" class="my-footnote-link" > </a>
  <div id="my-footnote:1" class="my-footnote">
    <p>
      <a href="#my-footnote-ref:1" class="my-footnote-backlink">​</a>
      Duis aute irure dolor in reprehenderit in voluptate velit esse
      cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
      proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    </p>
  </div>
</p>

<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>

</body>
</html>

