Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to permanently add CSS to some pages using Firefox?

Say, I want to change the font or background of a page I frequent using Firefox.

How to do that?

share|improve this question
up vote 5 down vote accepted

share|improve this answer
Greasemonkey is a good option.. – aneeshep Mar 14 '11 at 13:29

There's a great extension called Stylish that does exactly what you're looking for. It allows you to add custom CSS to the pages you visit.

share|improve this answer

You can add custom CSS rules to a chrome/userContent.css file in your Firefox profile folder.


/* For any page */
body { margin: 10px; border: 1px solid red !important; }

/* Or only for */
@-moz-document domain( {
    body { margin: 10px; border: 1px solid red !important; }
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.