iframe - Darstellungsproblem
Alex
- html
0 Fabian Transchel0 Tobias0 Alex
Hi!
Ich hab auf meiner Homepage einen iframe in eine tabelle eingebaut, der auch vertikal gescrollt werden kann.
Die Tabelle, in der der iframe eingebaut ist, hat einen Rahmen (style="border: 1px solid #545454) und keine Feste Höhe.
Der iframe selbst ( <iframe frameborder="0" marginheight="0" marginwidth="0" width="510" height="200"></iframe> ) wird im IE (5 und 6) normal dargestellt. Auch der Rand der Tabelle schließt an allen Seiten bündig an. Nur im Netscape 6,7 (4er hab ich noch nicht probiert) schließt der iframe nur unten nicht bündig an die Tabelle an (ungefähr 3-4 pixel dazwischen, dann kommt erst der Rand der Tabelle).
Gibts noch irgendeinen Einstellung, damit ich diesen lästigen Rand unten noch weg bekomme?
Vielen Dank im Voraus
*alex*
hi
Ich hab auf meiner Homepage einen iframe in eine tabelle eingebaut, der auch vertikal gescrollt werden kann.
Die Tabelle, in der der iframe eingebaut ist, hat einen Rahmen (style="border: 1px solid #545454) und keine Feste Höhe.
Der iframe selbst ( <iframe frameborder="0" marginheight="0" marginwidth="0" width="510" height="200"></iframe> ) wird im IE (5 und 6) normal dargestellt. Auch der Rand der Tabelle schließt an allen Seiten bündig an. Nur im Netscape 6,7 (4er hab ich noch nicht probiert) schließt der iframe nur unten nicht bündig an die Tabelle an (ungefähr 3-4 pixel dazwischen, dann kommt erst der Rand der Tabelle).
Gibts noch irgendeinen Einstellung, damit ich diesen lästigen Rand unten noch weg bekomme?
hast du mal von CSS gehört?
marginheight="0" marginwidth="0" ist doch vorsintflutlich.
style="margin:0px;"
und gut is.
Fabian
hi
Gibts noch irgendeinen Einstellung, damit ich diesen lästigen Rand unten noch weg bekomme?
versuchs mal mit margin:0px; an der tabelle
ansonsten gilt: </faq/#Q-07c> :)
gruß
Tobias
So hier der Quelltext:
####die Seite mit dem eingebetteten iframe:####
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>..::iframe test::..</title>
</head>
<body bgcolor="#ffffff">
<table cellspacing="0" cellpadding="0" style="border:1px solid #000000; margin:0px">
<tr>
<td>
<iframe frameborder="0" src="news.html" width="510" height="200" name="news_iframe">
</iframe>
</td>
</tr>
</table>
</body>
</html>
######und die news Seite (news.html), die in den iframe eingebettet wird:####
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>news</title>
</head>
<body bgcolor="#aa2233" leftmargin="0" marginheight="0" marginwidth="0" topmargin="0">
<table width="485" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="122"><img class="news_bild" src="artikel_1.jpg" alt="" height="90" width="120" border="0"></td>
<td style="padding-left: 10px" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding-bottom: 3px">Blindtext Blindtext</td>
</tr>
<tr>
<td>Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext</td>
</tr>
<tr>
<td style="padding-top: 3px">10.10.2002, 09:00</td>
</tr>
</table>
</td>
</tr>
<tr height="15">
<td height="15"></td>
<td height="15"></td>
</tr>
<tr>
<td valign="top" width="122"><img class="news_bild" src="artikel_1.jpg" alt="" height="90" width="120" border="0"></td>
<td style="padding-left: 10px" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding-bottom: 3px">Blindtext Blindtext</td>
</tr>
<tr>
<td>Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext Blindtext</td>
</tr>
<tr>
<td style="padding-top: 3px">10.10.2002, 09:00</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td></td>
</tr>
</table>
<p></p>
</body>
</html>
Das Problem tritt nur im Netscape auf (zwischen iframe und tabellenrahmen unten noch ca. 4px weiße Fläche)
- Danke
lg
*alex*
hi
####die Seite mit dem eingebetteten iframe:####
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>..::iframe test::..</title>
</head>
<body bgcolor="#ffffff">
<table cellspacing="0" cellpadding="0" style="border:1px solid #000000; margin:0px">
ich glaube Problem das du meinst kommt von dieser Tabelle (hat also nichts mit der news.html zu tun). Wenn ich border auf 0px setze ist der weiße streifen unten weg
gruß
Tobias
Danke erstmal!
Der weiße Rahmen ist zwar weg, aber nur weil man ihn nicht mehr sieht. Die gesamte Tabelle ist aber trotzdem um diese paar Pixel größer. naja, ich werd weiter probieren...
*alex*