a CSS problem (annotating a novel, horizontal flush alignment)

X

Xah Lee

i'm trying to annotate a literature, so that the main text is on the
left side about 60ex wide and the annotations are in a box on the right
side about 40ex wide.

the way i did this is so have like:

<p>...one paragraph of main text...[†1]...</p>

<div class="note">
†1 ...
</div>

where the class "note" floats right.

This all works well except when the paragraph is really long, in such a
case the annotation will be one screenful down.

For example, see second annotation at
http://xahlee.org/p/Gullivers_Travels/gt1ch02.html

is there some easy way using css so that annotation are most of the
time just on the right side of the paragraph?

(i want to avoid using tables for each paragraph)
Thanks.

Xah
(e-mail address removed)
∑ http://xahlee.org/
 
J

Johannes Koch

CSS issue, so xpost and f'up2 c.i.w.a.s.

Xah said:
i'm trying to annotate a literature, so that the main text is on the
left side about 60ex wide and the annotations are in a box on the right
side about 40ex wide.

the way i did this is so have like:

<p>...one paragraph of main text...[†1]...</p>

<div class="note">
†1 ...
</div>

where the class "note" floats right.

This all works well except when the paragraph is really long, in such a
case the annotation will be one screenful down.

For example, see second annotation at
http://xahlee.org/p/Gullivers_Travels/gt1ch02.html

is there some easy way using css so that annotation are most of the
time just on the right side of the paragraph?

(i want to avoid using tables for each paragraph)
Thanks.

Xah
(e-mail address removed)
∑ http://xahlee.org/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top