Thomas_Jung
Erfahrenes Mitglied
Hallo
Warum werden die zwei Tabellen nicht gleich breit dargestellt?
Gruß Thomas
Warum werden die zwei Tabellen nicht gleich breit dargestellt?
HTML:
<style>
th.list {
background-image:url(images/silver_nav.png);
padding:3px;
padding-left:5px;
vertical-align:middle;
font-size:12px;
margin-bottom: 0px;
border: 1px solid #C0C0C0;
font-weight: normal;
text-align:left;
}
.zelle_g {
margin-top:1px;
background: #F9F9F9;
/* border: 1px solid #E4E4E4; */
border-left: 1px solid #E4E4E4;
border-right: 1px solid #E4E4E4;
border-bottom: 1px solid #E4E4E4;
padding: 5px;
vertical-align:top; /* add by xaron */
}
</style>
<table style="width:900px; table-layout:fixed; border-collapse:collapse;">
<tr>
<th class="list" style="width:150px;">a</th>
<th class="list" style="width:150px;">b</th>
<th class="list" style="width:150px;">c</th>
<th class="list" style="width:150px;">d</th>
<th class="list" style="width:150px;">e</th>
<th class="list" style="width:150px;">f</th>
</tr><tr>
<td class="zelle_g" style="width:150px;">a</td>
<td class="zelle_g" style="width:150px;">b</td>
<td class="zelle_g" style="width:150px;">c</td
<td class="zelle_g" style="width:150px;">d</td>
<td class="zelle_g" style="width:150px;">e</td
<td class="zelle_g" style="width:150px;">f</td>
</tr>
</table>
<table style="width:900px; table-layout:fixed; border-collapse:collapse;">
<tr>
<th class="list" style="width:300px;">a</th>
<th class="list" style="width:300px;">b</th>
<th class="list" style="width:300px;">c</th>
</tr><tr>
<td class="zelle_g" style="width:300px;">a</td>
<td class="zelle_g" style="width:300px;">b</td>
<td class="zelle_g" style="width:300px;">c</td
</tr>
</table>
Gruß Thomas