[GNC] CSS Troubleshooting for Transaction reports

Adrien Monteleone adrien.monteleone at lusfiber.net
Mon Feb 22 13:41:49 EST 2021


If you want to play with this further, I would recommend 
saving/exporting the report (which by default, is HTML) and opening in a 
web browser, then use the browser's Developer Inspector tools to play 
with the CSS in real time. When you have it to your liking, adjust your 
stylesheet accordingly in GnuCash.

Note, for most if not all reports, the layout is still using the 
1990s/2000s method of 'everything is, or is in, a table'. Modern CSS no 
longer follows that pattern, so you'll have some adjustments to make to 
work with the report. Because of this, many cells that hold various 
headings and totals do not have IDs or Classes to expose them for 
styling. (the styles are hard-coded inline) And since the entire report 
is a table, you don't have otherwise semantic elements to style either.

If you can't get it the way you want due to these issues, I'd recommend 
opening the report in a spreadsheet and making it pretty there instead.

Regards,
Adrien

On 2/22/21 10:40 AM, Andreas Vyrides wrote:
> Dear Sir,
> 
> I hope this email find you well. I have been having some issues with 
> setting up transaction reports the way I want them to look.
> 
> I have been able to get the printed version of the report (which is my 
> main concern) the way I want it, but I have not been able to implement 
> some of the more "advanced" modifications present in other HTML style 
> sheets such as applying different colours to "Subheadings/Subtotals" and 
> "Sub-subheading/total".



More information about the gnucash-user mailing list