# Client statement CSS

**URL:** <https://community.quickfile.co.uk/t/client-statement-css/8948>\
**Category:** Advanced Customisation\
**Created:** [6 October 2015 21:49 UTC](https://community.quickfile.co.uk/t/client-statement-css/8948 "2015-10-06T21:49:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Glenn](https://qfcommunity.b-cdn.net/user_avatar/community.quickfile.co.uk/glenn/32/26841_2.png) [@Glenn](https://community.quickfile.co.uk/u/Glenn)\
**Post date:** [6 October 2015 21:49 UTC](https://community.quickfile.co.uk/t/client-statement-css/8948/1 "2015-10-06T21:49:52Z")

</div>

**Access via:** Account Settings › Design Customisation › Advanced CSS & HTML Customisation › **Client Statement CSS** (left-hand list)

# Prefer to watch?

[![Watch Customise QuickFile with CSS, HTML and scripts on YouTube](https://qfassets.b-cdn.net/original/3X/0/4/042c01bf58fa94b18fe4e71ede57a1d5d1d97f4a.png)](https://www.youtube.com/watch?v=BYgxD78X9j4)

Prefer a video walkthrough? Watch our [Customise QuickFile with CSS, HTML and scripts](https://www.youtube.com/watch?v=BYgxD78X9j4) tutorial on the QuickFile Help Guides YouTube channel.

# Introduction

Client Statement CSS changes how your client statements look, both on screen and as PDFs.

To see a statement, open a client and choose **Statement** from the view menu, or click the template’s **Preview** button. Preview opens a sample statement from your own account.

 ![A client statement preview with the standard styles.](https://qfassets.b-cdn.net/original/3X/4/0/4072d46e2ce13c368362abd292abfcd0ab76508c.jpeg)

# Selector reference

| Selector | What it is |
| --- | --- |
| `.invoice-text` | All document text |
| `.invoice-header` (and `.invoice-header span`) | The document title |
| `.imgDocumentLogo` | Your logo |
| `.invoice-details-left-td` | Grey label cells in the details table (top right) |
| `.invoice-items-header-cell` | Column headings on the items table |

> **The title is coloured on an inner span.** On statements, the word STATEMENT is inside a `<span>` with its own colour. Target `.invoice-header span` as well as `.invoice-header`, as Recipe 1 does.

# PDFs are not browsers

The PDF converter supports less CSS than your browser, so always check the downloaded PDF as well as the preview.

| Works reliably | Avoid |
| --- | --- |
| `font-family`, `font-size`, `color`, `font-weight` | Web fonts (`@font-face`, Google Fonts) |
| `background-color`, `border`, `padding` | `border-radius`, `box-shadow`, gradients |
| `width` / `height` in px | Flexbox, grid, `vw`/`vh` units |

# Recipe 1: House font and title colour

```css
.invoice-text {
    font-family: Arial, Helvetica, sans-serif !important;
    color: #222222 !important;
}

/* The document title. Statements set the colour on an inner span, so target both. */
.invoice-header,
.invoice-header span {
    color: #0f2a44 !important;
}

```

# Recipe 2: Shaded cells in your brand tint

```css
.invoice-details-left-td,
.invoice-items-header-cell {
    background-color: #e8eef5 !important;
    color: #0f2a44 !important;
}

```

Use a pale tint. Strong colours use a lot of ink when documents are printed.

# Recipe 3: Resize the logo

```css
.imgDocumentLogo {
    width: 150px !important;
    height: auto !important; /* keeps the proportions */
}

```

 ![A client statement preview with the standard styles.](https://qfassets.b-cdn.net/original/3X/4/0/4072d46e2ce13c368362abd292abfcd0ab76508c.jpeg)

 ![Client statement CSS: After Recipes 1–3](https://qfassets.b-cdn.net/original/3X/9/0/90948ebf8bd996d61c4d632f5666c001bb49bce1.jpeg)

# All together

```css
.invoice-text { font-family: Arial, Helvetica, sans-serif !important; color: #222222 !important; }
.invoice-header, .invoice-header span { color: #0f2a44 !important; }
.invoice-details-left-td, .invoice-items-header-cell { background-color: #e8eef5 !important; color: #0f2a44 !important; }
.imgDocumentLogo { width: 150px !important; height: auto !important; }

```

Sales invoices and estimates are styled separately, in **Account Settings → Design Customisation → Invoice Customisation**. Purchase invoices, payments and client statements share the same selectors, so these recipes also work in [Purchase invoice CSS](https://support.quickfile.co.uk/t/purchase-invoice-css/8959), [Purchase and sales payment CSS](https://support.quickfile.co.uk/t/purchase-and-sales-payment-css/8960) and [Client statement CSS](https://support.quickfile.co.uk/t/client-statement-css/8948).

# Related topics

New to Advanced Customisation? Start with **Advanced Customisation Tools** for an overview of every template, plus troubleshooting tips.

- [Advanced Customisation Tools](https://support.quickfile.co.uk/t/advanced-customisation-tools/8943): Where to find the editor, what each template changes, and how save, preview and activate work. Includes troubleshooting.
- [Purchase invoice CSS](https://support.quickfile.co.uk/t/purchase-invoice-css/8959): Style purchase invoices and purchase orders.
- [Purchase and sales payment CSS](https://support.quickfile.co.uk/t/purchase-and-sales-payment-css/8960): Style remittance advice and payment receipts.
