KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

How to get the font (and spacing to match) #1523

Open Richb201 opened this topic on on Jul 9, 2020 - 4 comments

Richb201 commented on Jul 9, 2020

Se the attached image from my report.

I'd like the text font and style under Company to match the same text and spacing as under Project Basis. How to do that? The text from Company comes from a table field (I also don't need that line). The text under Project Basis was typed directly into the html.

<h2> 1.1 Company Overview </h2>
<?php
Table::create(array(
    "dataStore"=>$this->dataStore("campaigns2"),
    "class"=>array(
        "table"=>"table table-hover"
    )
));
?>
<h2> 1.2 Products </h2>

<h2> 1.3 Study Toolkit Definitions </h2>
<h3>Project Basis</h3>

This method is based on development projects. In this method, costs associated with a specific project are accumulated and totalled. Three types of costs are allowed for the research credit 1) wages 2) supplies 3) contract research. But before these 3 costs can be totalled, a project must be considered qualified. A project is considered qualifed if it is undertaken to be useful in the develoment of a Business Component. Pure research that is not for the creation or improvement of business component is not considered an "allowed reason".
David Winterburn commented on Jul 10, 2020

Right click the text style you like and choose Inspect. Then copy the font-family, font-size, font-style in the Computed tab and add it to your page for table td:

<style>
    td, th {
        font-family: ... !important;
        font-size: ... !important;
        font-style: ... !important;
    }
</style>
Richb201 commented on Jul 10, 2020

OK. I copied it into my clipboard. I then copied it into the code. Here is what I copied. See from style to style.

</head>
<>
<style>
h1, h2, h3, h4, h5, h6 {
margin: 0;
font-family: inherit;
font-weight: bold;
color: inherit;
text-rendering: optimizelegibility;
}
</style>
<php>
\koolreport\inputs\DateRangePicker::create(array("name" => "dateRange"));
</php>

It seems to have no effect.

David Winterburn commented on Jul 13, 2020

Copy the font styles of your preferred section from the Computed tab, not the Styles one.

Then apply them to td, th, not h1->h6.

Richb201 commented on Jul 13, 2020

How do I "apply them to td"?

.table td {

padding: 8px;
line-height: 18px;
text-align: left;
vertical-align: top;
border-top: 1px solid #dddddd;

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
None yet

None