H. Meier: Was ist hier falsch/korrekter Einsatz von <div> Tags

Beitrag lesen

Hallo Alexander Brock

danke für die schnelle Antwort.

Hallo Freunde des gehobenen Forumsgenußes,

<div class="tax_info">" . sprintf(TEXT_INFO_TAX, $products_tax , tep_href_link(FILENAME_SHIPPING)) . "</div>"

Wie du diesen Code erzeugst ist vollkommen uninteressant, nur das Ergebnis zählt.

Da hast du natürlich vollkommen Recht. Wollte das nur der Vollständigkeit halber mit angeben, wobei ich da wohl doch was vergessen habe...

468: document type does not allow element "DIV" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag

Welches ist das Elternelement von dem div?

Das sagt mir jetzt nichts. Nehme mal an, du möchtest gerne wissen wie der Code davor und danach aussieht. Das ganze ist eine Tabelle, wobei jede Zelel so aufgebaut ist:

<td align="center" class="boxText">
<a href="http://www.meinedomain.de/index.html">
  <img src="images/10-058.JPG" border="0" alt="10-058" title=" 10-058 " width="100" height="80">
</a><br>
<a href="http://www.meinedomain.de/index.html">
  10-058
</a><br>
11,00&euro;<br>
<div class="tax_info">
  [inkl. 16% MwSt zzgl.
  <a href="http://www.meinedomain.de/shop/shipping.php" class="tax_info">
   <u>
    Versandkosten
   </u>
  </a>
  ]
</div>
</td>

Gruß
Alexander Brock

Hilft das weiter? Danke,

Hans