Member
Member
Noppes   2014-09-14, 19:52
#1
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
Administrator
Administrator
acrylian   2014-09-14, 20:25
#2
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.
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.