user1256960
user1256960

Reputation: 303

Can I set the background color in a Firefox extension's popup notification?

I am using the popup notification system described in the tutorial https://developer.mozilla.org/en/Using_popup_notifications . It is possible to change the background-color or text-color of the popup?

Upvotes: 0

Views: 1349

Answers (2)

Abhidev
Abhidev

Reputation: 7273

Yes you can change the colors, search for a stylesheet file to change the styling as per your requirements.

Upvotes: -1

Wladimir Palant
Wladimir Palant

Reputation: 57671

The example code in the documentation creates a <popupnotification popupid="sample-popup"> tag in the browser window (obviously, popupid attribute depends on the ID you specified when opening the notification), you can style it. Add the following code to a CSS file loaded by your browser overlay:

popupnotification[popupid="sample-popup"]
{
  background-color: #123456;
}

Upvotes: 3

Related Questions