1. Du har två cellspacing men ingen cellpadding i din tabell.
2. valign="top" i varje cell funkar när jag testar det?
4 svar · 239 visningar · startad av trexter
<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"> miscellaneous
<br />
<img src="duttred.gif" height="3" width="40"><a class="menu" href="#"> radio</a>
<br />
<img src="duttred.gif" height="3" width="40"><a class="menu" href="#"> gbook</a>
<br />
<img src="duttred.gif" height="3" width="40"><a class="menu" href="#"> 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"> computing
<br />
<img src="duttred.gif" height="3" width="40"><a class="menu" href="#"> code</a>
<br />
<img src="duttred.gif" height="3" width="40"><a class="menu" href="#"> 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"> academic
<br />
<img src="duttred.gif" height="3" width="40"><a class="menu" href="#"> 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.
1. Du har två cellspacing men ingen cellpadding i din tabell.
2. valign="top" i varje cell funkar när jag testar det?
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.
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...
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.