| Author |
image URLs
|
David Sheltby
Ranch Hand
Joined: Oct 19, 2011
Posts: 34
|
|
Hi
I have the following directory structure:
webapp/
|--resources/css/theme.css
|--resources/css/images/images.png
|--template.xhtml
|--index.xhtml
The template has the following <h utputStylesheet library="css" name="theme.css" /> in the <h:head> tag, however none of the images defined in theme.css are loading. All the URL paths are relative (e.g. they start with "images/"). The only way I can get them to load is to make them absolute URL's. What should they be?
thanks
|
 |
Vladimir Mokrozub
Greenhorn
Joined: Aug 31, 2012
Posts: 12
|
|
Try this:
|
 |
David Sheltby
Ranch Hand
Joined: Oct 19, 2011
Posts: 34
|
|
That works, except its not pretty. I also go it to work by changing them to:
Not really sure why that works though.
Thanks
|
 |
 |
|
|
subject: image URLs
|
|
|