[pmwiki-users] CSS in HTML pages
Joachim Durchholz
jo at durchholz.org
Fri Jun 16 01:28:28 CDT 2006
Patrick R. Michaud schrieb:
> On Thu, Jun 15, 2006 at 11:54:45PM +0200, Joachim Durchholz wrote:
>> Patrick R. Michaud schrieb:
>>> Sure, there are at least two easy ways to do it:
>>>
>>> 1. In pub/css/local.css
>>>
>>> .indent { margin-left:1.5em; }
>>
>> I haven't tested this, but the CSS specs say that in cases of identical
>> specifity, the later style will win. In PmWiki, this means the
>> HTML-based CSS takes priority, i.e. the styles from pmwiki.css will be
>> of lower precedence.
>
> Note that I said "pub/css/local.css", not "pmwiki.css".
Ah. I didn't know its role.
Hmm... I haven't found the relative priorities of local.css,
HTMLStylesFmt, and skin .css files on pmwiki.org.
Am I too dense to find that piece, or is the documentation incomplete here?
> This is generally expected. In fact, I should change the pmwiki
> skin to follow this model as well, so as not to throw off new
> skin designers.
It certainly threw *me* off, so please do!
>> I'm not 100% sure whether all browsers will honor the changed order
>> though. They might handle pulled-in CSS differently from inline CSS
>> (that would be contrary to the W3C specs as I understand them, but that
>> doesn't mean that IE will stick with that interpretation).
>
> All of the browsers I've tested (including IE) understand that
> the later definition wins, regardless of where it comes from.
Good.
Regards,
Jo
More information about the pmwiki-users
mailing list