
February 8th, 2005, 08:22 AM
|
|
Registered User
|
|
Join Date: Aug 2004
Posts: 25
Time spent in forums: 4 h 20 m 45 sec
Reputation Power: 0
|
|
|
Getting an underline in a table without space
We would like to underline some headings in tables. We tried to do it with the folowing code (it is not PHP code, but in this way it looks better):
PHP Code:
<table border="0" width="100%">
<tr>
<th colspan="2" align="left">
Calling Info<br>
<hr>
</th>
<th colspan="4"> </th>
</tr>
<tr>
<th align="right">Date</th>
<th align="right">Time</th>
<th align="right">Duration</th>
<th align="right">Dialed Number</th>
<th align="right">Calling Number</th>
<th align="right">Costs</th>
</tr>
<tr>
<th colspan="6" height="2">
<hr height="2">
</th>
</tr>
<tr>
<td align="right">30-1-2002</td>
<td align="right">17:14</td>
<td align="right">0:34:02</td>
<td align="right">6027846</td>
<td align="right">270</td>
<td align="right">0.96 €</td>
</tr>
.
.
.
</table>
In principle this works, the only problem is that there is to much room between the titles and the line. I tried to get things closer to eachother with the height attribute, but this does not work. I can use it to make the distance bigger, but not smaller. Is there a way to get the <hr> line close to the text?
|