creating table with inline css in pdf with colfusion tag cfdocument
<cfdocument format="pdf" margintop="0.1" marginbottom="0.1">
<html>
<head>
<style>
table, td {
border: 1px solid thin black;
border-right:none;
border-top: none;
text-align: left;
border-spacing: 0px;
padding:0px;
font:smaller;
}
table {
border-collapse: collapse;
widtd: 100%;
}
td {
border: 0px;
border-top: 1px solid thin black;
border-right: 1px solid thin black;
border-spacing:0px;
padding:5px;
border-spacing: 0px;
font:xx-small;
}
</style>
</head>
<body>
<table cellspacing="0">
<tr>
<td>Firstname</td>
<td>Lastname</td>
<td>Savings</td>
</tr>
<tr>
<td>Peter</td>
<td>Griffin</td>
<td>$100</td>
</tr>
<tr>
<td>Lois</td>
<td>Griffin</td>
<td>$150</td>
</tr>
<tr>
<td>Joe</td>
<td>Swanson</td>
<td>$300</td>
</tr>
<tr>
<td>Cleveland</td>
<td>Brown</td>
<td>$250</td>
</tr>
</table>
<br/>
<table cellspacing="0">
<tr>
<td>Firstname</td>
<td>Lastname</td>
<td>Savings</td>
</tr>
<tr>
<td>Peter</td>
<td>Griffin</td>
<td>$100</td>
</tr>
<tr>
<td>Lois</td>
<td>amat</td>
<td>$150</td>
</tr>
<tr>
<td>Joe</td>
<td>Swanson</td>
<td>$300</td>
</tr>
<tr>
<td>Cleveland</td>
<td>alim</td>
<td>$250</td>
</tr>
</table>
<br/>
<table cellspacing="0">
<tr>
<td>Firstname</td>
<td>Lastname</td>
<td>Savings</td>
</tr>
<tr>
<td>Peter</td>
<td>hidayah</td>
<td>$100</td>
</tr>
<tr>
<td>Lois</td>
<td>hanifah</td>
<td>$150</td>
</tr>
<tr>
<td>Joe</td>
<td>siti</td>
<td>$300</td>
</tr>
<tr>
<td>manjung</td>
<td>Brown</td>
<td>$250</td>
</tr>
</table>
</body>
</html></cfdocument>
output in pdf