Wednesday, March 18, 2009

Using user style sheet to modify the style of a web site

I tried to modify the style by using user style sheet. But some of style just could not take effect. I seemingly forget the basic rule of css cascade. The cascade works in the following order of importance:

  1. User styles flagged as !important
  2. Author styles flagged as !important
  3. Author styles
  4. User styles
  5. Styles applied by the browser/user agent

No comments:

Post a Comment