S star Medlem sedan apr. 2001 42 inlägg Frågan 8 okt. 2001 14:57 #1 Hej, jag har gjort en tabell med bakrundsbilder i för att få rätt färger och jag tror jag har helgarderat mig ganska bra. Det är bara det att netscape (4) är galet.
Allting i följande kod visas utan problem (alla bakundsbilder) utom den bakrundsbild som ligger under kommateringen <!-- Row separator -->: Förklara för mig någon, snälla.
<!-- Building horisontal menu table -->
<table width="800" border="0" cellspacing="0" cellpadding="0" height="91">
<tr><td width="697" height="68" background="images/structure/bglight.gif">
<!--Making table row 1 -->
<table width="797" border="0" cellspacing="0" cellpadding="0" background="images/structure/bglight.gif" height="68">
<tr>
<td width="17" background="images/structure/bglight.gif"><img src="images/structure/spacer.gif" width="17" height="9"></td>
<td width="474" background="images/structure/bglight.gif" class="top">MENU</td>
<td background="images/structure/bglight.gif" align="center" width="189"><img src="images/ogo.gif" width="76" height="62"></td>
</tr>
</table>
<!--Table right end -->
</td><td rowspan="4" width="3"><img src="images/structure/bgend.gif" width="3" height="91"></td>
</tr>
<tr><td width="697" height="3" background="images/structure/bgsep.gif">
<!-- Row separator -->
<table width="797" border="0" cellspacing="0" cellpadding="0" background="images/structure/bgsep.gif" height="3">
<tr>
<td background="images/structure/bgsep.gif" height="3" class="spacer"> </td>
</tr>
</table>
</td>
</tr>
<tr><td width="697" height="17" background="images/structure/bgdark.gif">
<!-- Table row 2 -->
<table width="797" border="0" cellspacing="0" cellpadding="0" background="images/structure/bgdark.gif" height="17">
<tr>
<td width="17" background="images/structure/bgdark.gif"><img src="images/structure/spacer.gif" width="17" height="9"></td>
<td width="474" background="images/structure/bgdark.gif" class="second">MENU</td>
<td background="images/structure/bgdark.gif" width="189" class="third"> </td>
</tr>
</table>
</td></tr>
<tr><td width="697" height="3" background="images/structure/bgbottom.gif">
<!-- Table bottom -->
<table width="797" border="0" cellspacing="0" cellpadding="0" background="images/structure/bgbottom.gif" height="3">
<tr>
<td background="images/structure/bgbottom.gif" class="spacer"> </td>
</tr>
</table>
</td>
</tr>
</table>
<!-- End of horisontal table -->
------------------
-----------------
O OveRRidE Medlem sedan feb. 2001 12 078 inlägg Det är inte så konstigt eftersom NS kräver innehåll i tabellerna.
Gör en bild, som är helt transparent (genomskinlig) som har måtten 1x3 (3 är höjden) och lägg i tabellen, så koden ser ut såhär:
<!-- Row separator -->
<table width="797" border="0" cellspacing="0" cellpadding="0" background="images/structure/bgsep.gif" height="3">
<tr>
<td background="images/structure/bgsep.gif" height="3" class="spacer">[b]<img src="1x3.gif">[/b]</td>
</tr>
</table>
Är det bara ett mellanslag i tabellen så blir det inget enligt NS även om du satt en fast höjd på <td>:n.
------------------
Craving for malicious suspection fulfilles the prophesized termination of this world.
[Redigerat av OveRRidE den 17 okt 2001]
återigen ett bevis på att vi alla hatar NS =)
------------------
______________________
Kalle samuelsson
http://www.dindator.nu