webForumDet fria alternativet

Helt sjukt (NS)

HTML & CSSur HTML, XHTML & CSS

2 svar · 211 visningar · startad av star

Medlem sedan apr. 200142 inlägg
Frågan#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">&nbsp;</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">&nbsp;</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">&nbsp;</td>
	</tr>
	</table>

</td>
</tr>
</table>
<!-- End of horisontal table -->

------------------
-----------------

Medlem sedan feb. 200112 078 inlägg
#2

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]

Medlem sedan sep. 2001171 inlägg
#3

återigen ett bevis på att vi alla hatar NS =)

------------------
______________________
Kalle samuelsson
http://www.dindator.nu

140 ms totalt · 3 externa anrop · v20260731065814-full.4bcf49fe
130 ms — hämta forumlista (db)
0 ms — hämta statistik (cache)
137 ms — hämta tråd, inlägg och bilagor (db)