I am in search of a way to create a unique text effect resembling a "sidebox" within my writing. The goal is to have a note or heading positioned at the start of a paragraph, floating either to the left or right with some negative space surrounding it and slightly below the top similar to the layout seen in this example:
https://i.sstatic.net/A5W8S.png
Simply applying a float property does not allow me to shift the note below the initial line, resulting in an incomplete look like so:
.note {
float: right;
margin: 0.5em 0 0.5em 0.5em;
}
<p>
<span class="note">29 July, 1814.</span>
Exhausted with sickness and fatigue, I walked over the sands with my companions to the hotel. I heard for the first time the confused buzz of voices speaking a different language from that to which I had been accustomed;</p>
Adjusting padding or margins only enlarges the box size without achieving the desired downward movement. As for absolute positioning, it eliminates reserved space and leads to overlapping elements.
Is there a method to accomplish this effect while ensuring the note precedes the paragraph?