Skip to content

Commit

Permalink
Merge pull request #184 from alcy/sidenotes-and-sections
Browse files Browse the repository at this point in the history
Add note about section tags for sidenotes
  • Loading branch information
daveliepmann authored Jul 22, 2024
2 parents 957e9c6 + efdb900 commit 7c6317c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ <h2 id="sidenotes">Sidenotes: Footnotes and Marginal Notes</h2>
class="margin-toggle"/&gt;</code></pre>
<p>You must manually assign a reference <code>id</code> to each side or margin note, replacing “sn-demo” in the <code>for</code> and the <code>id</code> attribute values with an appropriate descriptor. It is useful to use prefixes like <code>sn-</code> for sidenotes and <code>mn-</code> for margin notes.</p>
<p>Immediately adjacent to that sidenote reference in the main text goes the sidenote content itself, in a <code>span</code> with class <code>sidenote</code>. This tag is also inserted directly in the middle of the body text, but is either pushed into the margin or hidden by default. Make sure to position your sidenotes correctly by keeping the sidenote-number label close to the sidenote itself.</p>
<p>For optimal readibility of sidenotes, enclose the main text in the <code>section</code> tag.</p>
<p>If you want a sidenote without footnote-style numberings, then you want a margin note.
<label for="mn-demo" class="margin-toggle">&#8853;</label>
<input type="checkbox" id="mn-demo" class="margin-toggle"/>
Expand Down

0 comments on commit 7c6317c

Please sign in to comment.