The best I can come up with (Not using tables, but div based layout).
85% main column 2% gap 13% second column

<div style="width:85%">
Some random text. More random text....

Next paragraph. Yadda Yadda TEXT WE ARE ALIGNING  AGAINST <span
class="note" style="position:absolute;left:102.3%;width:15.2%">Some
note. Here.</span>
....
</div>

(Keep in mind the percentags on the span are relative to the width of
the parent container so you have to divide by .85. The left offset is
.87/.85 and the note width is .13/.85). Note, if two notes are too
close together, they may overlap in a really ugly fashion.

If you're ok with just aligning on a paragraph basis, using css
float:right; would be easier, and boxes would definitely not overlap
if two boxes are too close.

--
Bawolff

On Sat, Nov 11, 2017 at 2:35 PM, Emanuele D'Arrigo <[email protected]> wrote:
> Hi everybody!
>
> I'm in the process of manually converting a number PDF documents to wiki
> pages. The work is mostly straightforward copy&paste.
>
> There is one feature of the original PDFs document however that is hard to
> convert.
>
> To simplify the issue, imagine that document has a two columns layout, one
> column quite wide and the other, much narrower (say 85%/15%) width.
>
> The wide column is full of normal text with some structure (i.e. sections,
> paragraph and lists). The narrow column has small sparse notes (i.e. dates
> and people's names) that relate to specific lines of text in the wide
> column: in the PDF a note is at the same height as the line of text it
> relates to.
>
> Obviously, in a static PDF this works, but in a browser window the text in
> the wide column will reflow depending on the size and ratio of the window.
>
> Therefore, how do I ensure that the note in the small column remains at the
> same level with the portion of text it relates to? Effectively, how do I
> anchor the y-position of an element in a column of a wikitable to the
> y-position of, say, a specific word in another column of the same wiki
> table?
>
> Kind Regards,
>
> Manu
> _______________________________________________
> MediaWiki-l mailing list
> To unsubscribe, go to:
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to