Tabellenproblem

Status
Nicht offen für weitere Antworten.

fuxxor

Mitglied
Hallo,
wie erreiche ich es, dass die blaue zelle von der höhe her sich automatisch der grünen anpasst?

Code:
<table width="579" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr> 
    <td width="579" height="212" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
        <!--DWLayoutTable-->
        <tr> 
          <td width="285" height="212" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
              <!--DWLayoutTable-->
              <tr> 
                <td width="285" height="45" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FF0000">
                    <!--DWLayoutTable-->
                    <tr> 
                      <td width="285" height="45">&nbsp;</td>
                    </tr>
                  </table></td>
                </tr>
              <tr> 
                <td height="167" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#0000FF">
                    <!--DWLayoutTable-->
                    <tr> 
                      <td width="285" height="167">&nbsp;</td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
          <td width="294" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#00FF00">
              <!--DWLayoutTable-->
              <tr> 
                <td width="294" height="212" valign="top"><p>test</p>
                  <p>&nbsp;</p>
                  <p>&nbsp;</p>
                  <p>&nbsp;</p>
                  <p>e</p>
                  <p>&nbsp;</p>
                  <p>&nbsp;</p>
                  <p>&nbsp;</p>
                  <p>&nbsp;</p></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
 
Warum ist denn die rote Tabelle dort?
Du könntest doch einfach dir Rote Zelle löschen oder sehe ich da was falsch?

oder willst du die rote über die ganze breite ziehen?
 
Ach so, dann würde ich dir empfehlen:

PHP:
<table border="0" cellspacing="0">
<tr>
<td style="width: 200; height: 50; background-color: red;">TEST</td>
<td style="width: 200; height: 50; background-color: white;"></td>
</tr>
<td style="width: 200; height: 200; background-color: blue;">TEST</td>
<td style="width: 200; height: 200; background-color: yellow;">TEST</td>
</tr>
</td>
</table>

Zum Beispiel. Machst dann halt eine Tabelle mit 2 Zeilen und 2 Spalten, aber die Zelle oben Rechts machst du weiss ...
 
Hi,

ich würde Dir eine ähnliche Lösung vorschlagen wie Lord-Lance, auf der rechten
Seite jedoch mit einem rowspan.
Code:
<table style="height: 212px; width: 579px;" border="0" cellpadding="0" cellspacing="0">
    <tr valign="top" style="height: 45px;">
        <td style="width: 285px; background-color: #FF0000;">
            Navigation
        </td>
        <td style="background-color: #00FF00; width: 294px;" rowspan="2">
            Rechter Content
        </td>
    </tr>
    <tr valign="top" style="height: 100%;">
        <td style="background-color: #0000FF; width: 285px;">
            Linker Content
        </td>
    </tr>
</table>
Ciao
Quaese
 
Moin!

Versuch es mal damit:

PHP:
<table style="height: 200px; width: 579px;" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td>
      <table border="0" cellpadding="0" cellspacing="0" width="285" height="100%">
        <tr>
          <td height="45" bgcolor="#FF0000">
            a
          </td>
        </tr>
        <tr>
          <td bgcolor="#00FF00">
            b
          </td>
        </tr>
      </table>
    </td>
    <td>
      <table border="0" cellpadding="0" cellspacing="0" width="294" height="100%">
        <tr>
          <td bgcolor="#0000FF">
            c
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>

Bei mir klappt es so.

MfG

Ollek81
 
ich hab das gleiche problem, aber ist es unbedingt erforderlich, dass die konstruktion aus verschiedenen tabellen besteht und nicht aus zellen
 
Status
Nicht offen für weitere Antworten.
Zurück