Questions Tagged With csshttps://answers.axonivy.com/tags/css/?type=rss&user=A1234questions tagged <span class="tag">css</span>enMon, 18 Nov 2013 17:18:36 -0500How to get web resouces images defined in a CSS file?https://answers.axonivy.com/questions/85/how-to-get-web-resouces-images-defined-in-a-css-file<p>Hello,</p> <p>In an HTML dialog, if I use either of the following instructions for importing a style: </p> <pre><code>&lt;h:outputStylesheet name="portlet/css/presential.css"/&gt; </code></pre> <p>or</p> <pre><code>&lt;link rel="stylesheet" href="#{resource['portlet/css/presential.css']}" type="text/css"/&gt; </code></pre> <p>the CSS file is loaded (see line #1 below) with the request attribute "<strong>?ln=xpertivy-14-WebContent</strong>".</p> <p>Unfortunately, it cannot find the images defined in the CSS (see 2 last lines). Notice that the request attribute above is not appended to the image request. <img alt="alt text" src="/upfiles/2013-11-18_17_14_13-screenshot.png"></p> <p>This could be important because if I manually request the following URL: <strong><code>http://localhost:8082/ivy/faces/javax.faces.resource/portlet/images/clock24.png?ln=xpertivy-14-webContent</code></strong></p> <p>I can successfully get the clock24.png image.</p> <p>Is it actually a bug, or is there a particular way to do it?</p> <p>Thanks.</p>A1234Mon, 18 Nov 2013 17:18:36 -0500https://answers.axonivy.com/questions/85/how-to-get-web-resouces-images-defined-in-a-css-filehtmluserdialogcss