Mailing List Archive

space beneath headings
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 }
Re: space beneath headings [ In reply to ]
> (tarquin <tarquin@planetunreal.com>):
>
> 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 }

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 <lee@piclab.com> <http://www.piclab.com/lee/>
"All inventions or works of authorship original to me, herein and past,
are placed irrevocably in the public domain, and may be used or modified
for any purpose, without permission, attribution, or notification."--LDC
Re: space beneath headings [ In reply to ]
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 :-)
Re: space beneath headings [ In reply to ]
> (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.
--
Lee Daniel Crocker <lee@piclab.com> <http://www.piclab.com/lee/>
"All inventions or works of authorship original to me, herein and past,
are placed irrevocably in the public domain, and may be used or modified
for any purpose, without permission, attribution, or notification."--LDC
Re: space beneath headings [ In reply to ]
Lee Daniel Crocker wrote:

>We should never have heading tags inside a table.

Indeed.

Where do we ever have a heading tag inside of a table,
except as an example in the table of basic wiki markup
on [[en:Wikipedia:How to edit a page]]?


-- Toby