ZPBase - adding backgorund image in custom css

Hi,
I would like to use the custom css function the zpbase theme to change some css styles. This is working so far, however I would like to implement a background image in the navigation bar (e.g. '#nav {background-image:url(uploaded/Background.png);}'). This is working in the main gallery (the browers is looking for an image in www.mydomain.de/zenphoto/uploaded/), but if I change to a sub gallery or a page the path of the background image is not correct anymore (e.g. the browser is looking for the background image in www.mydomain.de/zenphoto/pages/uploaded/)
How can I use paths in the custom css field of the zpbase theme?

Thanks
Norbert

Comments

  • acrylian Administrator, Developer
    Try setting an absolute path `background-image:url(http://www.mydomain.de/uploaded/Background.png)`. That is uncommon and normally not needed but should work in all (newer) browsers nevertheless. There might be an issue if your site is also accessible via `https`. Newer browser will complain about that possibly.
Sign In or Register to comment.