[Pmwiki-users] PmWiki skinning
Patrick R. Michaud
pmichaud
Mon Nov 8 12:08:25 CST 2004
On Sat, Nov 06, 2004 at 12:41:02AM +0000, Val Sharp wrote:
>
> The CSS cascade order means that rules embedded with a STYLE element
> will override any LINKed or imported rules.
False. CSS rules in a <style> element override rules for any
@import statements within *the same element*, but not for
rules obtained from an external stylesheet via <link>. The
precedent for rules in <style> vs. <link> depends on the order
in which they are declared--the one declared later gets higher
priority. See http://www.pmichaud.com/sandbox/css-test-1.html
for an example/proof.
What this means in the context of PmWiki templates is that
externally <link>'ed stylesheets placed after the
<!--HeaderText--> in the template can override PmWiki's
default settings without having to use "!important".
Pm
More information about the pmwiki-users
mailing list