Ich kann nicht für das Leben von mir herauszufinden, warum mein Tisch so ausgeht.Einfaches HTML, das weit weg erscheint?
alt text http://i39.tinypic.com/af7cco.png
HTML:
<div id="items">
<div class="category"><h1>Apparel</h1></div>
<div class="list-product">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="50" align="center" style="padding-right: 5px;">
<img height="30" src="/images/products/none.jpg" />
</td>
<td>
<img style="padding: 0 3px 0 0;" src="/images/icons/flag_red.png" />
</td>
<td valign="middle">
<strong>Test Product</strong><br />
<span style="color: #777;">This has a short description.</span>
</td>
</tr>
</table>
</div>
... and the other table here
</div>
CSS: versuchen
div#items
{
width: 400px;
}
div.category
{
padding: 7px 13px;
background: #f0f0f0;
color: #101010;
font-size: 20px;
border-bottom: 1px solid #d0d0d0;
}
.list-product
{
border-bottom: 1px solid #ddd;
font-size: 12px;
padding: 10px;
}
Dies ist keine Antwort auf Ihre Frage (weshalb ich es gerade einen Kommentar gemacht habe), aber haben Sie darüber nachgedacht, keine Tabellen für Ihr Layout zu verwenden? –
Ich stimme zu Chris, das ist eine Menge HTML für so ein einfaches Layout. Eine HTML-Liste wäre viel geeigneter. –