Skip to content Skip to sidebar Skip to footer

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 tex

Solution 1:

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;
}

Solution 2:

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

Post a Comment for "Can I Set The Background Color In A Firefox Extension's Popup Notification?"