Fehler im IE - ich werd noch verrückt!

weedo

Erfahrenes Mitglied
Hi,

hier eine einfache html Tabelle. Folgendes Problem:

Im Firefox wird alles korrekt dargestellt. Im Internetexplorer hingegen reagiert der Iframe nicht auf die Links in der Navigation und ist auch nicht rechtsbündig. Warum?

HTML:
<html>
  <head>
    <title>Siesta - Die Bar am Schloss Charlottenburg</title>
    <style type="text/css">
      a {
       text-decoration: none;
       color: #fff;
      }
      a:hover {
        border-bottom: 1px dotted #fff;
      }
      body {
        color: #fff;
        font-family: Tahoma, Verdana, Sans-Serif;
        font-size: 14px;
      }
    </style>
  </head>
  <body bgcolor="#000000" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
    <table cellspacing="0" cellpadding="0" width="100%" height="100%" border="0">
      
      <tr>
        <td width="50%" colspan="2" style="border-bottom: 3px solid #fca600;" valign="bottom"><marquee>Ticker</marquee></td>
        <td width="200" background="img/bg_front.png"><img src="img/abstandhalter.gif" width="200" height="1" /></td>
        <td width="25" background="img/bg_back.png"><img src="img/abstandhalter.gif" width="25" height="1" /></td>
        <td width="50%">&nbsp;</td>
      </tr>
      
      <tr>
        <td width="1">&nbsp;</td>
        <td width="400" height="400" align="right">
          <iframe style="width: 400px; height: 400px; border: 1px solid #3rfwds;" src="content.php" name="content" id="content" frameborder="noframeborder"></iframe>
        </td>
        <td background="img/bg_front.png">
          <table width="100%">
            <tr>
              <td>
                <img src="logo.png" id="siestalogo" style="width: 180px; height: 101px;" /><br>
                <a href="content.php?site=home" target="content">Startseite / Home</a><br><br>
                <a href="content.php?site=about" target="content">&Uuml;ber uns / About</a><br><br>
                <a href="content.php?site=events" target="content">Veranstalltungen / Events</a><br><br>
                <a href="content.php?site=galerie" target="content">Galerie / Gallery</a><br><br>
                <a href="content.php?site=manu" target="content">Karte / Menu</a><br><br>
                <a href="index.php?site=imprint" target="content">Impressum / Imprint</a><br><br>
              </td>
            </tr>
          </table>
        </td>
        <td background="img/bg_back.png">&nbsp;</td>
        <td width="50%">
          <table height="100%" width="100%" cellspacing="0" cellpadding="0">
            <tr>
              <td width="100%" style="border-bottom: 3px solid #b70000;">
                &nbsp;
              </td>
            </tr>
            <tr>
              <td width="100%">
                &nbsp;
              </td>
            </tr>
          </table>
        </td>
      </tr>
      
      <tr>
        <td width="50%" colspan="2" style="border-top: 3px solid #fca600;">&nbsp;</td>
        <td background="img/bg_front.png">&nbsp;</td>
        <td background="img/bg_back.png">&nbsp;</td>
        <td width="50%">&nbsp;</td>
      </tr>
      
    </table>
  </body>
</html>

Für jede Hilfe bin ich dankbar, da ich mir mitlerweile die Zähne dadran ausbeiße...

lg weedo
 
Hallo,

ich habe den Code ausprobiert. Bei mir reagiert der Iframe in allen Browsers auf die Links. Ich habe es in Firefox 3.6, IE9, IE8 und IE7 ausprobiert. Überall funktionieren die Links.
Zur Rechtsbündigkeit:
So schwer es mir fällt, den IE recht zu geben, aber hier ist er ausnamsweise einmal der Browser, der richtig interpretiert. Die den Iframe umgebende Tabellenzelle ist in Ihrem Code 400px breit, der Iframe ist ebenfalls 400px breit. Also ist der Iframe korrekt in der Zelle positioniert. Wenn Sie z. B.

<td width="800" height="400" align="right">
<iframe style="width: 400px; height: 400px; border: 1px solid #3rfwds;" src="content.php" name="content" id="content" frameborder="noframeborder"></iframe>
</td>

verwenden, wird der Iframe auch weiter nach Rechts rutschen...

Viele Grüße
Carsten Fröhlich
 
Zurück