|
Cookbook /
OverrideCSSSummary: How to override previously defined styles without modifying the skin
Version: 2006-01-29
Prerequisites: Last tested on PmWiki version: pmwiki-2.1.beta22
Status:
Maintainer: floozy
QuestionNew CSS styles can easily be added using the AnswerAdd new CSS styles using the
CommentsNormally in CSS whichever rule is specified last takes precedence. So you don't need to use the !important directive, because styles defined in And instead of using Using the !important directive means that this CSS command will take precedence regardless of what appears after it. This is true for all browsers except IE, which ignores !important. ~HansB Actually, IE doesn't always ignore !important, it's just selective about when it honors it. But it often doesn't honor it when it's important to be honored. :-)
Contributors
Tested this all on 2006-02-09 on a farm (pmwiki-2.1.beta20) with skin=monobook. This is what I found:
So I only have to include |