Re: Help with setting background image
Lee <[email protected]> Tue, 24 Aug 2021 10:14:39 -0400
| Newsgroups | gmane.comp.web.privoxy.user |
|---|---|
| Message-ID | <CAD8GWsvxOXf_aS--Vj+TD1mtZh1mSZEk2wHLXDqVtaotu3L8yw@mail.gmail.com> |
On 8/23/21, [email protected] <[email protected]> wrote: > Im new to this so I apologize if I do something wrong. I'm struggling to > figure out how to set a custom background image on my custom template files > using CSS. I'm using "background-image: url(img.png);" in the CSS file. I thought there was a wishlist item to allow privoxy to serve up arbitrary files. I can't find anything like that on the TODO list tho :( But the user-manual includes images, so you can abuse the user-manual config directive to serve images from http://config.privoxy.org/user-manual/ 1. /etc/privoxy/config needs to have user-manual configured - eg user-manual /usr/share/doc/privoxy/user-manual which then allows you to serve up images from http://config.privoxy.org/user-manual/ 2. To change all pages, add your background css directive to /etc/privoxy/templates/cgi-style.css I did /* * General rules: Font, Color, Headings, Margins, Links */ body,td,th { font-family: arial, helvetica, helv, sans-serif; } body { background-color: #ffffff; color: #000000; } /* LR test: include arbitrary image */ body { background-image: url(//config.privoxy.org/user-manual/windows-eyes.gif); } 3. Add your background image to wherever the user manual is kept. For me it's /usr/share/doc/privoxy/user-manual/ And almost none of the background image shows through - but hopefully you can work around that. Regards Lee