[pmwiki-users] vspace revisited

Oliver Betz list_ob at gmx.net
Mon Jul 25 13:04:23 CDT 2011

Paul Giacherio wrote:

>This doesn't answer your question, but I always remove the vspace divs by
>including this line in my config:
>$HTMLVSpace = '';

I'm aware of this and did so for a CMS type application where I wanted
cleaner HTML.

>I believe the vspace divs are there to control text spacing. However I think
>there are better ways to control space using adjacent CSS selectors as

Well, "better" is a dangerous wording. I dislike that PmWiki adds so
many class='vspace'. In the end, there are mopre "vspaced" elements
than without vspace, therefore I would prefer an inverse handling of
vertical space (suppression instead of addition).

And you might open a can of worms if you try to duplicate the
behaviour with CSS.

>opposed to injecting divs everywhere. Here's an adjacent selector example:

to get suitable results with complex documents, you need an idea what
you want to get before you start to implement.

That's why I asked for a test case.

Consider headings, paragraphs, lists, tables, pictures in different
sequences, nested etc.

I already started some experiments, if somebody is interested, I can
put them on PmWiki.org as a discussion basis.

Oliver Betz, Muenchen (oliverbetz.de)

More information about the pmwiki-users mailing list