I totally agree with your thinking. Knowing what you want to achieve ahead of time is key.
Personally I don't find the 'can of worms' that daunting. I feel there are a fair number of css reset and default stylesheets out there that do a great job of styling standard tags. If you start there, what's left is a finite number of block-level element combinations that need adjusting. However, I can imagine that task becomes more difficult for very complex documents. I would rather handle larger css files, but that's just my preference. paul On Mon, Jul 25, 2011 at 2:04 PM, Oliver Betz <[email protected]> wrote: > 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: > >http://jsfiddle.net/paulgiacherio/BRChf/ > > 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 > -- > Oliver Betz, Muenchen (oliverbetz.de) > > > _______________________________________________ > pmwiki-users mailing list > [email protected] > http://www.pmichaud.com/mailman/listinfo/pmwiki-users > -- Paul Giacherio http://paulgiacherio.com
_______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
