I have created a Pdf in which have a table which have border css. But the table border get display only when it is a VF page the CSS is not working when VF page is renderAs="pdf". I want it to be displayed as VF page. Does there any way to get the solution.
My CSS & VF page:
<style>
pageBlockCss {
border-collapse:collapse;
border-width: 1px;
border-color: #000000;
}
pageBlockCss tr {
border-width: 1px;
border-style: solid;
border-color: #000000;
}
pageBlockCss td {
border-width: 1px;
border-style: solid;
border-color: #000000;
}
</style>
<table width="100%" class="pageBlockCss" >
<tr>
<td><b><apex:outputText value="Consultant Name" /></b></td>
<td><b><apex:outputText value="Project" /></b> </td>
<td><b><apex:outputText value="Consultant Role" /></b> </td>
<td><b><apex:outputText value="Quantity" /></b> </td>
<td><b><apex:outputText value="Charge Rate" /></b> </td>
<td><b><apex:outputText value="Sub Total" /></b> </td>
<td><b><apex:outputText value="Taxes" /></b> </td>
<td><b><apex:outputText value="Total" /></b> </td>
</tr>
<apex:repeat value="{!invLI_Con}" var="con" >
<tr>