I am generating PDF using iTextSharp.dll, but the problem is that I am not able to apply that CSS. I have one div:
The correct way to reference the backgroud color is through the HtmlTags class
styles.LoadTagStyle(HtmlTags.HEADERCELL, HtmlTags.BACKGROUNDCOLOR, "Blue");