[pmwiki-users] Proposed Default Stylesheet (pmwiki.css)
Patrick R. Michaud
pmichaud at pobox.com
Fri Feb 17 18:53:00 CST 2006
On Sat, Feb 18, 2006 at 01:28:03AM +0100, Joachim Durchholz wrote:
> > Ultimately I don't think PmWiki should automatically eat blank
> > lines after headings. Better is to use CSS to style those blank
> > lines as we want:
> >
> > h1 + p.vspace { margin-top: ... }
> >
> > (Unfortunately, IE 6 doesn't support the CSS "+" selector yet.)
>
> I'd try to avoid that if at all possible. Using "+" means you have to
> revisit a lot of corner cases, such as "<h2> after <h1>", "<h3> after
> <h1>", ..., "<h6> after <h1>", "<hr> after <h1>"; repeat for <h2>, <h3>
> etc. etc. etc. - horror!
Why? Seems to me that h1 + p.vspace, h2 + p.vspace, h3 + p.vspace, etc.
would be sufficient to cover things.
> Here's an alternative:
> Make lines that start with ! eat the following blank line if it exists.
> That way, if a page author truly wants more empty space after a heading,
> he can insert two empty lines.
> (Maybe too subtle... but empty lines after headings are subtle no matter
> what.)
For some reason I'm also uneasy about summarily eating any blank line
that follows a heading -- that feels at least as wrong to me as using '+'
in the CSS.
Ignoring PmWiki for a moment, how would one adjust the heading
margins with CSS assuming "normal" HTML semantics -- i.e.,
"How HTML Is Supposed To Be Done"?
<h1>Heading</h1>
<p>Here's my first paragraph</p>
<p>Here's my second paragraph</p>
> On a tangent, I noticed that PmWiki has an interesting deviant behavior
> if a ! line is followed with [@: it will run the preformatted text into
> the header. I.e.
>
> !!Header
> [@
> lorem ipsum
> @]
>
> will give
>
> <h2>header <pre>lorem ipsum</pre></h2>
>
> which isn't quite what I expected. (Quoting from memory, so I may have
> gotten some details wrong.)
I'm unable to produce this behavior on pmwiki.org --
see http://www.pmwiki.org/wiki/Test/HeadingAndPre .
Pm
More information about the pmwiki-users
mailing list