Hey Folks!
I'm using KoolReports to generate data reports from a mysql database and then exporting them to PDF. Imagine that!
When formatting my pdfs, I'd like to target the tables using "table-striped".
I have two views set up, one for the web and one for the pdf. I have one css stylesheet I am drawing on for both.
I can successfully used "table-stripped" in the web view, but the moment I try to use it in the pdf view, the table doesn't format with alternating colors! I can successfully target all other formatting elements for the entire PDF (header, background color, etc.), but I can't target any element of the table itself.
What am I doing wrong? What am I not doing at all?
My pdf view code:
<?php
Table::create(array(
"dataStore"=>$this->dataStore("locationAll"),
"columns"=>array(
"Physical Location",
"NewPhysicalLocation",
"Site"
),
"cssClass"=>array(
"table"=>"table-striped",
"th"=>"tbHeader",
"tr"=>"tbRow"
)
));
?>
My css code:
.tbRow {
background-color:#bfdeff;
}
.tbHeader {
background-color:#2f73b7 !important;
}