webForumDet fria alternativet

Mellarum och positionering.

4 svar · 234 visningar · startad av trexter

trexterMedlem sedan mars 20021 889 inlägg
#1
<style type="text/css" media="all">@import "css.css";</style>

<body>
<table cellspacing="0" cellspacing="0">
	<tr valign="middle">
		<td height="85" valign="top"><a href="default.aspx"><img src="logotype.gif" border="0" vspace="0" hspace="0" /></a></td>
		<td bgcolor="#f5f4ee" height="85">
 			<img src="space.gif" height="1" width="50">
 		</td> 		
 		<td bgcolor="#f5f4ee" height="85">
 			
 			<p>
 			<font face="verdana" size="1">
  			<img src="duttgrey.gif" height="5" width="20">&nbsp;miscellaneous
  			<br />
  			<img src="duttred.gif" height="3" width="40"><a class="menu" href="#">&nbsp;radio</a>
  			<br />
  			<img src="duttred.gif" height="3" width="40"><a class="menu" href="#">&nbsp;gbook</a>
  			<br />
  			<img src="duttred.gif" height="3" width="40"><a class="menu" href="#">&nbsp;me</a>
  			</p>
  			<img src="space.gif" height="1" width="150">
   		</td>
 		<td bgcolor="#f5f4ee" height="85">
 			
			<p>
			<font face="verdana" size="1">
			<img src="duttgrey.gif" height="5" width="20">&nbsp;computing
			<br />
			<img src="duttred.gif" height="3" width="40"><a class="menu" href="#">&nbsp;code</a>
			<br />
			<img src="duttred.gif" height="3" width="40"><a class="menu" href="#">&nbsp;articles</a>
			</p>
			<img src="space.gif" height="1" width="150">
		</td>
		<td bgcolor="#f5f4ee" width="100%" height="85">
			
			<p>
			<font face="verdana" size="1">
			<img src="duttgrey.gif" height="5" width="20">&nbsp;academic
			<br />
			<img src="duttred.gif" height="3" width="40"><a class="menu" href="#">&nbsp;reviews</a>
			<br />
			</p>
			<img src="space.gif" height="1" width="150">
		</td>
	</tr>
</table>

1. Runt bilden "logotype" skapas en vit ram på en pixel även om jag specificerat att den ska vara 0 px

2. Hur sak jag göra för att få innehållet i de olika <td>:arna att ligga på samma nivå horisontellt? "valign=top" osv. hjäper inte.

Web-TorMedlem sedan nov. 200013 890 inlägg
#2

1. Du har två cellspacing men ingen cellpadding i din tabell. ;)

2. valign="top" i varje cell funkar när jag testar det?

trexterMedlem sedan mars 20021 889 inlägg
#3

Web-Tor skrev:

1. Du har två cellspacing men ingen cellpadding i din tabell. ;)

2. valign="top" i varje cell funkar när jag testar det?

Hehe, det där med cellspacing var ju lite pinsamt om man säger som så ;)

Fel två får jag grubbla vidare över däremot... med valign="top" hamnar innehållen olika.

:)

trexterMedlem sedan mars 20021 889 inlägg
#4

Ok, problemet löstes. Jag vet inte exakt hur men det hae någonting med att IE ville ha massor av utrymme runt en bild att göra... :OO

Web-TorMedlem sedan nov. 200013 890 inlägg
#5

Konstigt?
Jag använde den koden du visade i första inlägget och la bara till valign i varje cell. Det funkade hur bra som helst.

132 ms totalt · 3 externa anrop · v20260731065814-full.3ab8d573
0 ms — hämta forumlista (cache)
0 ms — hämta statistik (cache)
129 ms — hämta tråd, inlägg och bilagor (db)