Hi George, you could convert your resources to base64 encoded content simply using e.g. tools like: http://webcodertools.com/imagetobase64converter/Create so your css will be: div.Overlay div.close{ background-image: url(data:image/png;base64,iVBORw ........ }; regards, Peter On Jan 20, 2:19 am, GeorgesMouth <[email protected]> wrote: > Anyone know how to resolve a URL for an extension packages file in an > extension's CSS file? In the JavaScript I can just use something like > chrome.extension.getURL("images/overlay/close.png") and it'll return > the "chrome-extension://" URL for the file. > > But I'm trying to figure out how to do the same thing in a CSS file, > like one loaded via the manifest.json file like: > > "content_scripts": [ { > "all_frames": true, > "css": [ "myStyles.css" ], > ... > } ] > > I tried using CSS that looks like: > > div.Overlay div.close { > background:url(images/overlay/close.png) no-repeat; > > And, of course, that fails.
-- You received this message because you are subscribed to the Google Groups "Chromium-extensions" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=en.
