Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Lolu chungechunge lwabekwa kunqolobane. Uyacelwa ubuze umbuzo omusha uma udinga usizo.

the code a.hover is not working on a domain basis

  • 2 uphendule
  • 6 zinale nkinga
  • 14 views
  • Igcine ukuphendulwa ngu cor-el

more options

Working global code in userContent.css : a:hover {

 color: white !important;
 background-color: #C00000 !important;
 text-decoration: none !important;

}

That caused a problem with one website so I want to set that rule per domain : @-moz-document domain(facebook.com) {

 a.hover {
   color: white !important;
   background-color: #C00000 !important;
   text-decoration: none !important;
   }

} I had it working some time ago but I must have done something different. In the editor, the words hover and color are blue instead of brown and the code is not working. The same for other sites.

How do I correct the code?

Working global code in userContent.css : a:hover { color: white !important; background-color: #C00000 !important; text-decoration: none !important; } That caused a problem with one website so I want to set that rule per domain : @-moz-document domain(facebook.com) { a.hover { color: white !important; background-color: #C00000 !important; text-decoration: none !important; } } I had it working some time ago but I must have done something different. In the editor, the words hover and color are blue instead of brown and the code is not working. The same for other sites. How do I correct the code?
Ama-screenshot ananyekiwe

Isisombululo esikhethiwe

It is probably better not to use the !important flag for the background-color to avoid specific issues to make it possible for a website to handle this (background image).

Funda le mpendulo ngokuhambisana nalesi sihloko 👍 4

All Replies (2)

more options

I have sorted it out :

@-moz-document domain(facebook.com) { a:hover {

 color: white !important;
 background-color: #C00000 !important;
 text-decoration: none !important;
 }

}

Okulungisiwe ngu ender21

more options

Isisombululo Esikhethiwe

It is probably better not to use the !important flag for the background-color to avoid specific issues to make it possible for a website to handle this (background image).