0

Relative URL to component images in css

asked 2013-12-19 10:42:28 +0800

venicum gravatar image venicum
21 4

updated 2013-12-19 11:29:36 +0800

I developed a component in ZK 7.0.0 with own molds, css's styles etc. The component should be build in one jar file, which I can copy in WEB-INF/lib folder to replace standart ZK components.

Folder structure:

  • src/
  • src/main/resources/web/images/
  • src/main/resources/web/js/

In ".css.dsp" files I use statements likes:

background-image:url(${c:encodeURL('/images/in2.png')}

And it's refer to 'http://domen/webapp/images/in2.png'. (physical path: /webapp/images/in2.png). But I need get images from jar file.

How can I write relative path to images in css files?

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-03-06 18:42:39 +0800

venicum gravatar image venicum
21 4

http://stackoverflow.com/questions/20680666/relative-url-to-images-in-css-zkoss

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-12-19 10:42:28 +0800

Seen: 33 times

Last updated: Mar 06 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More