AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

HTML Tabelle verschiebt sich

Ein Thema von Metallicwar · begonnen am 2. Jul 2013 · letzter Beitrag vom 3. Jul 2013
Antwort Antwort
Metallicwar

Registriert seit: 5. Feb 2010
Ort: Bad Kissingen
293 Beiträge
 
Delphi XE Architect
 
#1

HTML Tabelle verschiebt sich

  Alt 2. Jul 2013, 12:55
Hi,
ich bin gerade dabei einen Footer für eine Mailvorlage zu erstellen.
Problem ist, dass sich dieser Footer, welcher aus mehreren ineinander gebauten Tabellen besteht, sich beispeilsweise durch Weiterleitung der Mail verschiebt. (Zeilenabstände werden größer, Zeilenumbrüche, etc.)
Gibt es einen HTML Code um Umbrüche zu unterdrücken? oder dass sich die tabelle nicht vergrößern darf?
Code:
</font></td>

<table style="text-align: left; width: 828px; height: 119px;" border="0" cellpadding="0" cellspacing="0">

  <tbody>
    <tr>
      <td style="vertical-align: top; width: 320px; height: 119px;">
      <table style="text-align: left; width: 356px; height: 100px;" border="0" cellpadding="10" cellspacing="0">
        <tbody>
          <tr>
            <td style="vertical-align: top; font-weight: bold;">
            <table style="text-align: left; width: 355px; height: 64px;" border="0" cellpadding="0" cellspacing="0">
              <tbody>
                <tr>
                  <td style="vertical-align: top;"><span style="font-family: Arial;">Musterfirma GmbH</span><br style="font-family: Arial;">
                  <span style="font-weight: normal; font-family: Arial;">Musterstraße 1</span><br style="font-weight: normal; font-family: Arial;">
                  <span style="font-weight: normal; font-family: Arial;">D-12345 Musterstadt</span><br>
                  </td>
                </tr>
              </tbody>
            </table>
            </td>
          </tr>
          <tr>
            <td>
            <table style="text-align: left; width: 354px; height: 86px;" border="0" cellpadding="0" cellspacing="0">
              <tbody>
                <tr>
                  <td style="vertical-align: top; width: 40%; height: 72px;"><span style="font-weight: normal; font-family: Arial;">Telefon</span><br style="font-weight: normal; font-family: Arial;">
                  <span style="font-weight: normal; font-family: Arial;">Fax:</span><br style="font-weight: normal; font-family: Arial;">
                  <span style="font-weight: normal; font-family: Arial;">E-Mail:</span><br style="font-weight: normal; font-family: Arial;">
                  <span style="font-weight: normal; font-family: Arial;">Internet:</span><span style="font-weight: bold;"><br>
                  </span></td>
                  <td style="vertical-align: top; width: 350px; height: 72px;"><span style="font-weight: normal; font-family: Arial;">+49 / (0)123 / 4567-0</span><br style="font-weight: normal; font-family: Arial;">
                  <span style="font-weight: normal; font-family: Arial;">+49 / (0)123 / 4567-0</span><br style="font-weight: normal; font-family: Arial;">
                  <span style="font-weight: normal; font-family: Arial;">info@musterfirma.info</span><br style="font-weight: normal; font-family: Arial;">
                  <span style="font-weight: normal; font-family: Arial;">www.musterfirma.info</span><br>
                  </td>
                </tr>
              </tbody>
            </table>
            </td>
          </tr>
        </tbody>
      </table>
      </td>
      <td style="vertical-align: top; width: 700px; height: 119px;"><img src="http://www.kinder-soforthilfe.de/tl_files/soforthilfe/musterlogo.jpg" alt="Mittnacht" style="width: 450px; height: 135px;"><br>
      </td>
    </tr>
  </tbody>
</table>

<table style="text-align: left; height: 65px; width: 829px;" border="0" cellpadding="10" cellspacing="0">

  <tbody>
    <tr>
      <td style="vertical-align: top; font-family: Arial; width: 146px;"><small><span style="font-weight: normal;">Gesch&auml;ftsf&uuml;hrer:</span><br style="font-weight: normal;">

Registergericht:<br style="font-weight: normal;">

Ust-IdNr.:</small></td>
      <td style="vertical-align: top; width: 219px;"><small><span style="font-weight: normal; font-family: Arial;">Max Mustermann, Dipl.-Ing. (FH)</span><br style="font-weight: normal; font-family: Arial;">
      <span style="font-family: Arial;">
Amtsgericht Musterort HRB 1234</span><br style="font-weight: normal; font-family: Arial;">
      <span style="font-family: Arial;">
DE 134 170 449</span><span style="font-weight: normal; font-family: Arial;"></span><br>

      </small></td>
      <td style="width: 198px;"><small><span style="font-family: Arial;"> Musterkasse Musterort</span><br style="font-family: Arial;">
      <span style="font-family: Arial;">
SWIFT-BIC-CODE:</span><br style="font-family: Arial;">
      <span style="font-family: Arial;">
IBAN-NR:</span><br>

      </small></td>
      <td style="width: 263px; text-align: right;"><small><span style="font-family: Arial;"> 123 45 678 (BLZ 123 000 00)</span><br style="font-family: Arial;">
      <span style="font-family: Arial;">
BY ABC D1 EFG</span><br style="font-family: Arial;">
      <span style="font-family: Arial;">
1111 1111 1111 1111 1111 11</span><br>

      </small></td>
    </tr>
  </tbody>
</table>
<table style="text-align: left; width: 830px; height: 124px;" border="0" cellpadding="10" cellspacing="0">
  <tbody>
    <tr>
      <td style="vertical-align: top;"><small style="font-family: Arial;">Diese
E-Mail k&ouml;nnte vertrauliche und/oder rechtlich gesch&uuml;tzte Informationen
enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrt&uuml;mlich erhalten haben, informieren Sie bitte sofort den Absender
und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die
unbefugte Weitergabe dieser Mail ist nicht gestattet.</small><br style="font-family: Arial;">
      <small style="font-family: Arial;"><br>
This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail.
Any unauthorized copying, disclosure or distribution of the material in
this e-mail is strictly forbidden.</small><br>
      </td>
    </tr>
  </tbody>
</table>
   
   
   </tr>
  </tbody>
</table>
</body>
</html>
  Mit Zitat antworten Zitat
Benutzerbild von jaenicke
jaenicke

Registriert seit: 10. Jun 2003
Ort: Berlin
9.352 Beiträge
 
Delphi 11 Alexandria
 
#2

AW: HTML Tabelle verschiebt sich

  Alt 2. Jul 2013, 13:25
Normalerweise sollte das so durch die festen Größenangaben schon funktionieren. Wenn das nicht funktioniert, liegt das am E-Mail-Programm (deins oder das des Empfängers), da wirst du nicht viel machen können.

Am Ende sind noch schließende Tags zu viel (</tr></tbody></table>), die verwirren evtl. auch ein E-Mail-Programm.

Nebenbei:
Diese E-Mail-Disclaimer ("This e-mail may contain confidential and/or privileged information. ..."), auch als Angstklauseln bekannt, finde ich in E-Mails immer lustig. Die zeigen dem Empfänger nur, dass der Absender keinen Anwalt zur Beratung zur Verfügung hat...
Sebastian Jänicke
Alle eigenen Projekte sind eingestellt, ebenso meine Homepage, Downloadlinks usw. im Forum bleiben aktiv!
  Mit Zitat antworten Zitat
Metallicwar

Registriert seit: 5. Feb 2010
Ort: Bad Kissingen
293 Beiträge
 
Delphi XE Architect
 
#3

AW: HTML Tabelle verschiebt sich

  Alt 3. Jul 2013, 07:54
Moin,
danke für die Antwort.
Habe es anderst gelöst, hab den gesamten Text in einer Grafik gespeichert und einfach das Image in den footer eingebunden.

P.S. Die Vorlage mache ich für einen Kunden nicht für mich
  Mit Zitat antworten Zitat
Der schöne Günther

Registriert seit: 6. Mär 2013
6.110 Beiträge
 
Delphi 10 Seattle Enterprise
 
#4

AW: HTML Tabelle verschiebt sich

  Alt 3. Jul 2013, 09:01
Na dann hoffentlich nicht als JPEG...

Du hast uns nicht alles gegeben. Im Kern sind es drei Tabellen. Die Zeile davor sagt

Code:
</font></td>
,

nach den drei Tabellen kommt ein

Code:
    </tr>
   </tbody>
 </table>
gefolgt von einem

Code:
</body>
 </html>
.

Das macht keinen Sinn, da stimmt etwas nicht.


Umbruch in Tabellenzeilen sollten per CSS verhindert werden, siehe SelfHTML: white-space (Textumbruch)
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 04:17 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz