livvinit2damax
02-27-2009, 09:21 AM
Dear All,
I have an issue with a table I am trying to make for my online CV. I have made a table, such as the one below:
<table>
<tr>
<th width="110" class="tdt">Company</th>
<td class="tdt">BAE Systems - Pinzgauer Devision/Pinzgauer Ltd</td>
<td rowspan="3" width="75"><img align="right" src="images/thumb-pinz.jpg" alt="" /></td>
</tr>
<tr>
<th class="tdt">Dates of Work</th>
<th class="tdt">Job Title</th>
</tr>
<tr>
<td class="tdt">08/06-12/07</td>
<td class="tdt">Student Design Engineer</td>
</tr>
<tr>
<td colspan="3" class="tdt">
As part of my five year MEng Sandwich course...</td>
</tr>
</table>
And the relevant CSS is:
table {
width: 530px;
border-collapse: collapse;
}
th {
background-color: #333333;
padding: 2px;
font-size: 12px;
font-weight: normal;
color: #FFFFFF;
text-align: left;
border: solid 1px #333333;
}
tr {
color: #333333;
}
td {
border: solid 1px #333333;
}
.tdt {
padding: 2px;
font-size: 12px;
}
img {
padding: 0px;
display: block;
}
The problem is that I want the border to stay tightly wrapped around the thumbnail image and it to stay in the top right hand corner of the table. This seems to work fine with only a small amount of text is the bottom cell, however, as soon as I put more text into that cell, it moves the thumbnail left leaving blank space!!
Can anyone please explain to me why the amount of text in the bottom cell seems to change the position of the upper cell without modifying the overall table dimentions?
Any help would be greatly appreciated.
Many thanks,
Mike
I have an issue with a table I am trying to make for my online CV. I have made a table, such as the one below:
<table>
<tr>
<th width="110" class="tdt">Company</th>
<td class="tdt">BAE Systems - Pinzgauer Devision/Pinzgauer Ltd</td>
<td rowspan="3" width="75"><img align="right" src="images/thumb-pinz.jpg" alt="" /></td>
</tr>
<tr>
<th class="tdt">Dates of Work</th>
<th class="tdt">Job Title</th>
</tr>
<tr>
<td class="tdt">08/06-12/07</td>
<td class="tdt">Student Design Engineer</td>
</tr>
<tr>
<td colspan="3" class="tdt">
As part of my five year MEng Sandwich course...</td>
</tr>
</table>
And the relevant CSS is:
table {
width: 530px;
border-collapse: collapse;
}
th {
background-color: #333333;
padding: 2px;
font-size: 12px;
font-weight: normal;
color: #FFFFFF;
text-align: left;
border: solid 1px #333333;
}
tr {
color: #333333;
}
td {
border: solid 1px #333333;
}
.tdt {
padding: 2px;
font-size: 12px;
}
img {
padding: 0px;
display: block;
}
The problem is that I want the border to stay tightly wrapped around the thumbnail image and it to stay in the top right hand corner of the table. This seems to work fine with only a small amount of text is the bottom cell, however, as soon as I put more text into that cell, it moves the thumbnail left leaving blank space!!
Can anyone please explain to me why the amount of text in the bottom cell seems to change the position of the upper cell without modifying the overall table dimentions?
Any help would be greatly appreciated.
Many thanks,
Mike