HarryS: Hintergrundbild in <table> bei Netscape 4.7

Beitrag lesen

Hallo Bernd,»» Hallo,

ich will in einer Tabelle in einer blinden Tabelle ein Hintergrundbild einblenden und habe dazu folgendes HTML geschrieben (Ausschnitt des relevanten Teils):

<td valign="top" align="left" colspan="2">
<table border="0" width="100%" cellpadding="10" cellspacing="0" style="background-image:url(Variation1.jpg); margin:0px; padding:10px; background-repeat:no-repeat">

Ja das funktioniert so nicht im NS4

Die Styleangaben für den Background müssen im td Element stehen:

<table border="0" width="100%" cellpadding="10" cellspacing="0">
<tr>
<td width="100px" height="100px" style="background-image:url(Variation1.jpg); margin:0px; padding:10px; background-repeat:no-repeat;"> </td>
</tr>
</table>

Außerdem versteht er hier keine width und height Angaben im _Style_ desshalb die alte Methode, als Attribut von td (musst Du natürlich anpassen). Außerdem muß auch noch was in der Tabellenzelle stehen, also mindestens ein

Grüße aus Nürnberg,
HarryS