• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

Tabelle in Tabelle

Status
Für weitere Antworten geschlossen.

Antony

Neues Mitglied
Kann mir einer sagen wie ich diese Tabelle noch eine äußere Tabelle zufügen kann..

HTML:
<table width="350"  cellpadding="2" cellspacing="0" style="font-family:Verdana; font-size:9px">
 
    <tr>
     <ul id="gastblink" >
     <td style="color:#E1E9F1; height:3px" width="10" bgcolor="#8DB6CD">Name:</td>
     <td style="color:#E1E9F1; height:3px" width="250" bgcolor="#8DB6CD"><a href="mailto:<?= $zeile[email] ?>"</a><?= $zeile[nick] ?> </td>
     <td style="color:#E1E9F1; height:3px" align="right" width="15" bgcolor="#8DB6CD"><?= $zeile[uhrzeit] ?></td>
     <td style="color:#E1E9F1; height:3px" width="1" bgcolor="#8DB6CD">|</td>
     <td style="color:#E1E9F1; height:3px" width="50" bgcolor="#8DB6CD"><?= $zeile[date] ?> </td>
     </ul>
    </tr>
</table>  
<table width="350" bordercolor="#46627b" cellpadding="2" cellspacing="0" style="font-family:Geneva, Arial, Helvetica, sans-serif; font-size:11px">
      
    <tr>
     <td style="border-top:#8DB6CD; border-bottom:#8DB6CD; border-left:#8DB6CD; border-right: #8DB6CD; border-style: solid; border-width: 1" valign="top" width="280" bgcolor="#D3E0E9"><?= $zeile[message] ?> </td>
    </tr>
     
</table>  
<table width="350"  cellpadding="2" cellspacing="0">
 
    <tr>
     <td style="color:#E1E9F1; height:2px" height="2" width="300" bgcolor="#8DB6CD"></td>
    </tr>
</table>
 
Werbung:
Code:
<table>
<tr>
  <td>

[COLOR=#008080]<table width=[COLOR=#0000ff]"350"[/COLOR]  cellpadding=[COLOR=#0000ff]"2"[/COLOR] cellspacing=[COLOR=#0000ff]"0"[/COLOR] style=[COLOR=#0000ff]"font-family:Verdana; font-size:9px"[/COLOR]>[/COLOR] [COLOR=#008080]<tr>[/COLOR] [COLOR=#000080]<ul id=[COLOR=#0000ff]"gastblink"[/COLOR] >[/COLOR] [COLOR=#008080]<td style=[COLOR=#0000ff]"color:#E1E9F1; height:3px"[/COLOR] width=[COLOR=#0000ff]"10"[/COLOR] bgcolor=[COLOR=#0000ff]"#8DB6CD"[/COLOR]>[/COLOR]Name:[COLOR=#008080]</td>[/COLOR] [COLOR=#008080]<td style=[COLOR=#0000ff]"color:#E1E9F1; height:3px"[/COLOR] width=[COLOR=#0000ff]"250"[/COLOR] bgcolor=[COLOR=#0000ff]"#8DB6CD"[/COLOR]>[/COLOR][COLOR=#008000]<a href=[COLOR=#0000ff]"mailto:<?= $zeile[email] ?>"[/COLOR]</a>[/COLOR][COLOR=#000080]<?= $zeile[nick] ?>[/COLOR] [COLOR=#008080]</td>[/COLOR] [COLOR=#008080]<td style=[COLOR=#0000ff]"color:#E1E9F1; height:3px"[/COLOR] align=[COLOR=#0000ff]"right"[/COLOR] width=[COLOR=#0000ff]"15"[/COLOR] bgcolor=[COLOR=#0000ff]"#8DB6CD"[/COLOR]>[/COLOR][COLOR=#000080]<?= $zeile[uhrzeit] ?>[/COLOR][COLOR=#008080]</td>[/COLOR] [COLOR=#008080]<td style=[COLOR=#0000ff]"color:#E1E9F1; height:3px"[/COLOR] width=[COLOR=#0000ff]"1"[/COLOR] bgcolor=[COLOR=#0000ff]"#8DB6CD"[/COLOR]>[/COLOR]|[COLOR=#008080]</td>[/COLOR] [COLOR=#008080]<td style=[COLOR=#0000ff]"color:#E1E9F1; height:3px"[/COLOR] width=[COLOR=#0000ff]"50"[/COLOR] bgcolor=[COLOR=#0000ff]"#8DB6CD"[/COLOR]>[/COLOR][COLOR=#000080]<?= $zeile[date] ?>[/COLOR] [COLOR=#008080]</td>[/COLOR] [COLOR=#000080]</ul>[/COLOR] [COLOR=#008080]</tr>[/COLOR] [COLOR=#008080]</table>[/COLOR] [COLOR=#008080]<table width=[COLOR=#0000ff]"350"[/COLOR] bordercolor=[COLOR=#0000ff]"#46627b"[/COLOR] cellpadding=[COLOR=#0000ff]"2"[/COLOR] cellspacing=[COLOR=#0000ff]"0"[/COLOR] style=[COLOR=#0000ff]"font-family:Geneva, Arial, Helvetica, sans-serif; font-size:11px"[/COLOR]>[/COLOR] [COLOR=#008080]<tr>[/COLOR] [COLOR=#008080]<td style=[COLOR=#0000ff]"border-top:#8DB6CD; border-bottom:#8DB6CD; border-left:#8DB6CD; border-right: #8DB6CD; border-style: solid; border-width: 1"[/COLOR] valign=[COLOR=#0000ff]"top"[/COLOR] width=[COLOR=#0000ff]"280"[/COLOR] bgcolor=[COLOR=#0000ff]"#D3E0E9"[/COLOR]>[/COLOR][COLOR=#000080]<?= $zeile[message] ?>[/COLOR] [COLOR=#008080]</td>[/COLOR] [COLOR=#008080]</tr>[/COLOR] [COLOR=#008080]</table>[/COLOR] [COLOR=#008080]<table width=[COLOR=#0000ff]"350"[/COLOR]  cellpadding=[COLOR=#0000ff]"2"[/COLOR] cellspacing=[COLOR=#0000ff]"0"[/COLOR]>[/COLOR] [COLOR=#008080]<tr>[/COLOR] [COLOR=#008080]<td style=[COLOR=#0000ff]"color:#E1E9F1; height:2px"[/COLOR] height=[COLOR=#0000ff]"2"[/COLOR] width=[COLOR=#0000ff]"300"[/COLOR] bgcolor=[COLOR=#0000ff]"#8DB6CD"[/COLOR]>[/COLOR][COLOR=#008080]</td>[/COLOR] [COLOR=#008080]</tr>[/COLOR] [COLOR=#008080]</table>[/COLOR]  </td>
</tr>
</table>
die sinnhaftigkeit stelle ich mal in frage. tabelle in tabelle akzeptiere ich eigentlich nur, wenn es zwei scripte sind, die tabellen generieren und sich gegenseitig aufrufen.
ach ja, das nächste mal bitte den code umbrechen ;-)
 
Kann mir einer sagen wie ich diese Tabelle noch eine äußere Tabelle zufügen kann..

Hört sich stark nach Tabellenlayout an, in dem Zusammenhang solltest du dir vielleicht mal diesen Artikel durchlesen und dein Vorhaben noch einmal überdenken.

Warum Layout mit Tabellen dumm ist: Probleme definiert, Lösungen angeboten

ach ja, das nächste mal bitte den code umbrechen ;-)

PHP:
 oder [code] verwenden, [html] funktioniert nicht richtig, wie gesehen.
 
Werbung:
wieso akzeptierst du tabellen in tabllen nicht?
Wenn man n eignes Layout macht (wie schongesagt) , und dafür nur tabellen benutzt, also schön einfach und billig dann bracuht man das meistens ^^
 
ich denke, du meinst mich oder ?
nun, ich mache das zum teil selber noch, allerdings nur noch aus dem grunde, da es scripte sind, die entweder:

* schon gediegen und hundert mal getestet und bewährt sind
* zum anderen nur dann, wenn ich keine befriedigende lösung per css zustande bringe, was aber meistens an meinen css kenntnissen liegt. da meine anforderungen manchmal etwas heftig sind finde ich nicht immer eine lösung für gängige browser.

meistens ist es grund nummer 1. ich verwende die scripte, die ich für kunden erstelle auch selber und warte also meine scripte dadurch, dass ich selbst auch auf fehler komme. viele kunden haben merkwürdige vorstellungen, wie etwas aussehen soll. da ich fast ausschliesslich tabellarische daten verarbeite kommen meistens auch tabellen dabei raus.

aber zur antwort.
wenn ich schon neu und für mich selber entwickle, kann ich es auch gleich richtig machen, wie es sich gehört. für tabellen in tabellen kann man auch nvu, quanta, frontpage oder sowas nehmen, das geht ratz-fatz und ist ein ergebnis in 10 minuten, das befriedigt. richtiger wäre es, wenn man das ganze in html und css macht. tabellen in tabellen ist meistens nicht nötig. billig sieht meistens auch billig aus.

man kann sich nette templates fix und fertig herunter laden, die man nur noch mit content füllen muss und gut is. noch "preiswerter" geht es ja fast nicht.
 
wieso akzeptierst du tabellen in tabllen nicht?
Deshalb nicht!
Kannst du in diesem Code auf die schnelle erkennen, welche Zelle wofür verantwortlich ist und schnelle Änderungen durchführen? Ich nicht.

PHP:
    <table class="top" border="3" cellspacing="5" cellpadding="2" width="600" color="#928344" bgcolor="#345678">
      <tr>
        <td>
          <table class="main" border="3" cellspacing="5" cellpadding="2" width="600" color="#928344" bgcolor="#345678">
            <tr>
              <td>&nbsp;</td>
              <td><img src="spacer.gif" /></td>
              <td>
                <table class="right" border="3" cellspacing="5" cellpadding="2" width="600" color="#928344" bgcolor="#345678">
                  <tr>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                  </tr>
                </table>
              </td>
              <td>&nbsp;</td>
              <td>
                <table border="3" border="3" cellspacing="5" cellpadding="2" width="600" color="#928344" bgcolor="#345678">
                  <tr>
                    <td><img src="spacer.gif" /></td>
                    <td><img src="spacer.gif" /></td>
                    <td>&nbsp;</td>
                  </tr>
                </table>
              </td>
              <td><img src="spacer.gif" /></td>
              <td>&nbsp;</td>
            </tr>
          </table>
        </td>
        <td>
          <table border="3" border="3" cellspacing="5" cellpadding="2" width="600" color="#928344" bgcolor="#345678">
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td><img src="spacer.gif" /></td>
            </tr>
          </table>
        </td>
        <td></td>
        <td><img src="spacer.gif" /></td>
        <td><img src="spacer.gif" /></td>
        <td><img src="spacer.gif" /></td>
        <td>&nbsp;</td>
      </tr>
    </table>
Und dieses Beispiel ist noch harmlos, da hab ich schon weitaus schlimmere gesehen.

Tabellen sind einfach nicht fürs Layout vorgesehen, CSS kann das viel besser und der Code behält seine Semantik. Was sagt dieser Quellcode über die Semantik aus? Richtig, nichts. Lauter leere Zellen ohne Inhalt.
 
Werbung:
Status
Für weitere Antworten geschlossen.
Zurück
Oben