Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   HTML Tabelle verschiebt sich (https://www.delphipraxis.net/175577-html-tabelle-verschiebt-sich.html)

Metallicwar 2. Jul 2013 12:55

HTML Tabelle verschiebt sich
 
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>

jaenicke 2. Jul 2013 13:25

AW: HTML Tabelle verschiebt sich
 
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...

Metallicwar 3. Jul 2013 07:54

AW: HTML Tabelle verschiebt sich
 
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 :-D

Der schöne Günther 3. Jul 2013 09:01

AW: HTML Tabelle verschiebt sich
 
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)


Alle Zeitangaben in WEZ +1. Es ist jetzt 08:26 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz