this issue has raised its head again on the manual of style page. And it still bugs me that we're mixing up presentation with semantics.
recap: the curent situation is this:
== heading == Text: there will be little space between this and the heading
== heading ==
Text following a blank line. There will be a gap between this and the heading
So a quick question: 1. under what circumstances do we *definitely* need space between a heading an the following content? and 2. under what circumstances do we *definitely NOT*?
The only one I can remember is that in tables (countries, elements, etc), we want *no* space.
any others? because if not, we can resolve this problem with CSS: h1 , h2 etc { usual space } table h1 , table h2 etc { no space }
(tarquin tarquin@planetunreal.com):
So a quick question:
- under what circumstances do we *definitely* need space between a
heading an the following content? and 2. under what circumstances do we *definitely NOT*?
The only one I can remember is that in tables (countries, elements, etc), we want *no* space.
any others? because if not, we can resolve this problem with CSS: h1 , h2 etc { usual space } table h1 , table h2 etc { no space }
We should never have heading tags inside a table. Headings should only be used for article structure, and styles should be used for table cells. That said, the stylesheet should determine the amount of space between a heading and its following text, and whether or not there is a blank space between them in the souce text shouldn't matter.
Lee Daniel Crocker wrote:
We should never have heading tags inside a table. Headings should only be used for article structure, and styles should be used for table cells. That said, the stylesheet should determine the amount of space between a heading and its following text, and whether or not there is a blank space between them in the souce text shouldn't matter.
So we can kill off the "space after heading / no space after heading" distinction in wiki markup? If so -- yay!!!! :-)
Daniel Mayer wrote:
please make normal headings (outside of tables) have one half space following them.
margin-bottom:1ex; should be about right :-)
(tarquin tarquin@planetunreal.com):
So we can kill off the "space after heading / no space after heading" distinction in wiki markup? If so -- yay!!!!
Well, eventually. I'm describing how the parser /should/ work. It probably doesn't work that way at the moment.
Daniel Mayer wrote: please make normal headings (outside of tables) have one half space following them.
margin-bottom:1ex; should be about right :-)
That seems like a reasonable default.
wikitech-l@lists.wikimedia.org