It looks like part of a comment to me but, if it isn't, get rid of:
Code:
<?php
/* tabelle baby1 hat die spalten: id, datum, bildkl, bildgr, text, fungif */
echo "<TR>\n";
/* echo " <div style='width:600px; height:400px;'></div>\n";
echo " <script language='JavaScript' src='./js/thumbnailviewer.js'></script>\n"; */
echo " <TD width='100'></TD>\n";
echo " <TD width='25'>*</TD>\n";
echo " <TD width='100' align='center' valign='center'>\n";
Get rid of it anyway. The script's external call belongs only once, in the head of the page, not singly or repeatedly generated in the page's body. Make sure you still have one valid external call for the script in the head of the page.
If that takes care of it, fine. Otherwise, read on:
It sounds to me as though the:
#thumbBox{ /*Outermost DIV for thumbnail viewer*/
as mentioned in the thumbnailviewer.css and your table are getting nested somehow. This could happen if the code for either or both isn't properly formed. When one set of code isn't formed well and it is the only code on a page that is generated, the browser will usually 'fill in the gaps' and see it as valid code. Since both are generated, one by the viewer script and the other by the server PHP, I'd try validating the generated code.
I suspect, that even if you were to remove the viewer from the page and tried to validate the generated table, it would have correctable problems.
It sounds as though the #ganzeseitediv is somehow being placed inside the thumbbox or visa versa. Since both elements are positioned absolutely, this will cause inflation of the container's dimensions. They should each be being generated as distinct, not nested elements though. At least as a test, try changing your #ganzeseitediv by removing its position:absolute; from its css (don't switch to fixed or relative, just get rid of position completely for it).
Bookmarks