# Vector logo?

**URL:** <https://community.quickfile.co.uk/t/vector-logo/31068>\
**Category:** Invoice CSS\
**Created:** [21 September 2019 12:50 UTC](https://community.quickfile.co.uk/t/vector-logo/31068 "2019-09-21T12:50:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjdshaw](https://qfcommunity.b-cdn.net/letter_avatar_proxy/v4/letter/c/ea5d25/32.png) [@cjdshaw](https://community.quickfile.co.uk/u/cjdshaw)\
**Post date:** [21 September 2019 12:50 UTC](https://community.quickfile.co.uk/t/vector-logo/31068/1 "2019-09-21T12:50:27Z")

</div>

Is it possible to use a vector logo format - SVG or PDF?

---

<div class="post-metadata">

**Author:** ![ian\_roberts](https://qfcommunity.b-cdn.net/user_avatar/community.quickfile.co.uk/ian_roberts/32/17630_2.png) [@ian\_roberts](https://community.quickfile.co.uk/u/ian_roberts)\
**Post date:** [22 September 2019 09:47 UTC](https://community.quickfile.co.uk/t/vector-logo/31068/2 "2019-09-22T09:47:04Z")

</div>

SVG ought to work, certainly on screen in the browser, you’d have to experiment to see if the PDF renderer can cope with it.

---

<div class="post-metadata">

**Author:** ![cjdshaw](https://qfcommunity.b-cdn.net/letter_avatar_proxy/v4/letter/c/ea5d25/32.png) [@cjdshaw](https://community.quickfile.co.uk/u/cjdshaw)\
**Post date:** [22 September 2019 15:20 UTC](https://community.quickfile.co.uk/t/vector-logo/31068/3 "2019-09-22T15:20:39Z")

</div>

If I try to upload an SVG, I get  
`Please upload a jpg, gif or png image.`  
Is there a way of replacing the logo in the CSS?

---

<div class="post-metadata">

**Author:** ![ian\_roberts](https://qfcommunity.b-cdn.net/user_avatar/community.quickfile.co.uk/ian_roberts/32/17630_2.png) [@ian\_roberts](https://community.quickfile.co.uk/u/ian_roberts)\
**Post date:** [22 September 2019 16:58 UTC](https://community.quickfile.co.uk/t/vector-logo/31068/4 "2019-09-22T16:58:13Z")

</div>

Hmm, you might be able to do it by hiding the `<img>` for the logo and then referencing your SVG (hosted somewhere else on the web) as a `background-image`:

```css
.invoice-logo-container {
  /* all the existing properties */
  background-image: url(https://example.com/my-logo.svg);
}

#imginvoiceLogo {
  display: none;
}

```

Like I say, I’ve no idea whether the PDF renderer will respect this aspect of the CSS, you’d have to try it and see what happens. (Note I don’t work for QuickFile, I’m just a long-time user)

---

<div class="post-metadata">

**Author:** ![cjdshaw](https://qfcommunity.b-cdn.net/letter_avatar_proxy/v4/letter/c/ea5d25/32.png) [@cjdshaw](https://community.quickfile.co.uk/u/cjdshaw)\
**Post date:** [22 September 2019 19:31 UTC](https://community.quickfile.co.uk/t/vector-logo/31068/5 "2019-09-22T19:31:46Z")

</div>

Thanks for your help. For anyone trying to do this, I actually got it to work with

```
.invoice-logo-img{
	display: none;
}

.invoice-logo-container::before {
    content:"";
    background:url("http://www.example.com/Logo.svg") no-repeat center 0px/250px;
    height:30px;
    display:block;
}

```

And it does work with PDF renderer, so long as you convert any fonts to shapes. Official support for SVG logos would make life easier though.

---

<div class="post-metadata">

**Author:** ![system](https://qfassets.b-cdn.net/original/2X/3/39ec7b02b2487e2ab08507f158db032ecb29c8d5.png) [@system](https://community.quickfile.co.uk/u/system)\
**Post date:** [25 September 2019 13:00 UTC](https://community.quickfile.co.uk/t/vector-logo/31068/6 "2019-09-25T13:00:36Z")

</div>

Closed on 25 September 2019 13:00 UTC

This topic was automatically closed after 4 days. New replies are no longer allowed.
