😕
Hi, this forum is great.. I've had three problems so far and all of them have given me a clue in where to find the solution...
Now I'm stuck again... And this is my problem...
I have a <div> tag (which i think is the problem) that gives me a space in my form (as shown in picture). It only does this sometimes... and sometimes it works just fine (IE6).
In IE 5.5 and other browsers, the space is always there.. which makes me even more confused. I cannot see where i go wrong.
Is it the scroll in the divtag that is confusing older browsers?
ANY kind of help would be much appreciated, since i've benn messing around in this code for a loong time now...
have a nice day
/fazer
the part with the form and div
8< - - - - - - - - - - - -
echo "<div class=\"scrollplank\" valign=\"top\">";
echo "<TABLE border=\"0\" ALIGN=\"center\" WIDTH=\"100%\" cellspacing=\"0\" cellpadding=\"0\">";
echo "<form method=\"post\" action=\"--URL--\">";
$i=1;
while ($row = mysql_fetch_array($query))
{
$i % 2 == 0 ? $bgColor = "#F2F2D2" : $bgColor = "#FFFFEE";
$raderaid=0;
$id=$row["nummer"];
$user=$row["username"];
$tid=$row["tid"];
$infomedlem = $db->get_row("SELECT anvandare, fornamn, efternamn, epost FROM medlemmar WHERE anvandare = '$user'");
echo "<TR>";
echo "<TD rowspan=\"2\" align=\"center\" VALIGN=\"middle\" bgcolor=\"$bgColor\" WIDTH=\"60\" >";
$mitumbild = $db->get_row("SELECT filename FROM images WHERE anvandare='$user' AND bild_nummer='1'");
echo"<a target=\"_blank\" href=\"--URL--\".$mitumbild->filename. "\"><img BORDER=0 src=\"{$tumkatalog}{$tumprefix}".$mitumbild->filename."\" alt=\"Klicka på bilden för att se den i verklig storlek\"></a>";
/
echo "<a target=\"_blank\" href=\"--URL--\"><IMG BORDER=0 WIDTH=50 HEIGHT=60 SRC=\"--URL--\">";
echo "</TD>";
/
echo "<TD bgcolor=\"$bgColor\" VALIGN=\"top\"><small># $id, $infomedlem->fornamn $infomedlem->efternamn, [<a href=\"--URL--\">". $row['username'] ."</a>], " .skrivdatum($tid)." ".skrivtid($tid)."</small>";
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<TD bgcolor=\"$bgColor\" VALIGN=\"top\" WIDTH=\"520\">";
echo "<font color=\"maroon\">". $row["tanke"] . "</font>";
if (!isset($UID))
echo "<INPUT TYPE=\"hidden\" value=\"besok\" NAME=\"main\" SIZE=50> <input type=\"hidden\" value=\"$id\" name=\"raderaid\" border=\"0\" alt=\"321321321\"><input type=\"image\" name=\"$id\" align=\"right\" valign=\"baseline\" src=\"/pic/radera.gif\" border=\"0\" alt=\"Tar bort inlägg nr: $id\" onClick=\"return alert('Du kan ta bort dina egna inlägg då du är inloggad')\" >";
if (isset($UID) && $UID==($row["username"]))
echo "<INPUT TYPE=\"hidden\" value=\"besok\" NAME=\"main\" SIZE=50> <input type=\"hidden\" value=\"$id\" name=\"raderaid\" border=\"0\" alt=\"321321321\"><input type=\"image\" name=\"$id\" align=\"right\" valign=\"baseline\" src=\"/pic/radera.gif\" border=\"0\" alt=\"Tar bort inlägg nr: $id\">";
echo "</TD>";
echo "</TR> ";
echo "<tr>";
echo "<td colspan=\"2\" width=\"100%\" bgcolor=\"#FFFFCC\" height=\"5\"></td>";
echo "</tr>";
$raderaid=0;
$i++;
}
echo "</form></table>";
echo "</div>";
- - - - - - - - - - - - - - >8