Well that's interesting/embarassing/noconsequence: I left out my
shortened sample from the prior message.
Well, I found a solution!
After visiting stackoverflow and finding out that over a bazillion
people have had the exact same problem with css and absolute
positioning, I rediscovered a solution, included here for
completeness.
Apparently if you dare use absolute positioning in CSS the various CSS
specs and CSS engines give up on using the height/width/etc of the
block you are absolute positioning to determine the position of
anything else.
However, if you supply the height/width/whatever information in a
parent block, it looks like that will be taken in account.
So the page below does render properly in trac. The trick for me is
in the parent div element that enumerates the total height of the
child divs. Take out that parent, and the content below the group of
divs overlaps with the group of divs.
<html>
<head>
<title>notes</title>
<style>
.pos {position:fixed;}
</style>
</head>
<body>
<div style="height:100px">
<p>Here is a glossary table, created with a pdf to html
program using css:</p>
<div class="pos" style="top:85px; left:49px">BARO</div>
<div class="pos" style="top:110px; left:49px">BATT</div>
<div class="pos" style="top:82px; left:249px">Barometric</
div>
<div class="pos" style="top:107px; left:249px">Battery</div>
</div>
<br style="overflow:hidden; clear:both" />
<b>
<span style="font-size:125%;color:white; background-
color:DodgerBlue;font-family:Courier; border-style:solid; border-width:
2px; border-color:DarkBlue">
I would like THIS line to appear <big>under</big> the glossary
table
</span></b>
</body>
</html>
What this means practically, is that I can take pages from a pdf
generated by pdftohtml, clean them up a little bit, and insert them
into trac using trac-admin wiki import with pages that look a little
something like this:
{{{
#!html
<div style="height:200px">
<div class="pos" id="*85:49" style="top:85px;left:49px">BARO</div>
<div class="pos" id="*110:49" style="top:110px;left:49px">BATT BCST</
div>
<div class="pos" id="*82:249" style="top:82px;left:249px">Barometric</
div>
<div class="pos" id="*107:249" style="top:107px;left:249px">Battery
Broadcast</div>
</div>
}}}
On Feb 8, 4:22 pm, jerry <[email protected]> wrote:
> I've shortened my previous example quite a bit and I am hoping someone
> can clue me in a bit about what I am doing wrong wrt CSS.
>
> So...
>
> I have a 600 page pdf manual that I would like to put into our wiki,
> mainly to make it accessible and searchable. I ran a version of
> pdftohtml on it, and now I have 600 html pages.
>
> pdf and postscript carefully position every letter and word fragment.
> pdftohtml uses css divs, and absolute positioning to do the same. I
> take the html generated by pdftohtml, and strip out the <head>...</
> head> stuff and a lot of other crap as well, javascript mostly. Then,
> I wrap it in
>
> {{{
> #!HTML
> ...
>
> }}}
>
> And place that in the wiki, and VOILA, everything works, well, except
> that the footer matter, the buttons for editing, attaching a file,
> deleting the page, downloading the page, the powered by trac stuff,
> all of that appears smashed on top of my page, as though the
> combination of the {{{#!HTML ..}}} with the divs and the absolute
> positioning, rendered it invisible.
>
> It basically comes down to this sample. If you cut and paste this
> into a file and load that into a browser, you should
>
> 1. A sentence describing my table,
> 2. A line that says "I want this line UNDER my table"
> 3. My table created by a pdf-to-html program using CSS,
>
> What I would prefer to see is:
>
> 1. A sentence describing my table,
> 2. My table created by a pdf-to-html program using CSS,
> 3. A line that says "I want this line UNDER my table"
>
> How do I make that happen?
>
> Thanks,
>
> Jerry
--
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en.