title: how to use css in razorpdf
body: <p>I'm using <code>mvc4</code>,here I'm using <code>razorpdf</code> to convert my view to pdf, but I'm getting an error - <code>Unable to cast object of type iTextSharp.text.Paragraph to type iTextSharp.text.Table</code>.</p>
  
  <p>This is the sample code I'm using:</p>
  
  <pre><code>    @{
  
      Layout = "~/Views/Shared/_PdfLayout.cshtml";
  }
  &lt;html&gt;
      &lt;body&gt;
          &lt;table border="1" width='500' bordercolor="RED"&gt;&lt;tr&gt;&lt;td colspan="3" bgcolor="LightGreen" align="center" valign="top"&gt;SSLC Marks Sheet 2013&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/body&gt;
  &lt;/html&gt;
  </code></pre>