Hi guys,

Can you please tell me how to use the background-image CSS property to
reference an image coming from the extension directory ?

I am injecting my CSS using the manifest definition :
{
  "name": "My First Extension",
  "version": "1.0",
  "description": "The first extension that I made.",
  "content_scripts": [
    {
      "matches": ["http://*/*";, "https://*/*";],
      "css": ["mycss.css"]
    }
  ]
}

and here's my mycss.css :
body
{
color:red;
font-weight:bold;
background:yellow url(image.png) repeat;
}

the image is also located in the extension directory.

Thanks and great job !

--~--~---------~--~----~------------~-------~--~----~
Chromium Discussion mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-discuss
-~----------~----~----~----~------~----~------~--~---

Reply via email to