You’re viewing an archive of outdated material. Visit The Web Standards Project’s updated site to learn about our current mission.

! important Demo

MacIE does not support the ! important priority. This is most useful for user stylesheets (which MacIE also does not support), since it allows users to override author rules when they need to. Since the definition of !important is different in CSS1 and CSS2, authors should not use !important because CSS1 browsers (such as MSIE 4.0 for Windows) allow authors using !important to override all user styles.

This paragraph uses the following styles:

div.one * { color: green ! important; }
p.two { color: red; }

These styles should make the following paragraph green. Instead, they make it red:

This text should be green.