|
Convenient web based access to our favorite web design Usenet groups
|
 |
This is Interesting: Free Magazines for Graphics designers and webmasters
| Author |
| Thread |
 |
|
|
|
|
|
 |
 |
|
|
|
  08-31-04 - 12:17 AM
|
A publication style guide indicates that for a table heading like the
following,
Table 3. Wheat and rye harvest in European countries in years that end in 3
or 7 or when a new prime minister takes office.
when the heading flows over more than one line, a hanging indent should be
used, such that the remainder of the heading should be left-aligned, in this
example, with "Wheat", leaving "Table 3. " standing off by itself on the
left.
The style guide was created by print-based designers, and some of their
guidelines will need to be altered or scrapped for web publication. But is
there some way to fulfill this particular guideline as specified on the WWW?
The problem is that the width of the indent has to be dynamic, since the
table designator's width depends on the font and on its content (which could
just as well be Table 37M). The distance between the first period and the
following word is specified as two em spaces, which maybe padding or a
margin could take care of.
I suppose this should all be in a CAPTION element, but alternatively it
could be an H1 preceding the TABLE element.
--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ๔ter le premier point de mon adresse de courriel.
|
|
|
| [
Post Follow-Up to this message ]
|
|
|
|
|
 |
|
|
 |
|
|
 |
 |
Re: Dynamic hanging indent |
 |
|
 |
|
|
|
  08-31-04 - 04:16 AM
|
"Harlan Messinger" <h.messinger@comcast.net> wrote:
> A publication style guide indicates that for a table heading - -
> when the heading flows over more than one line, a hanging indent
> should be used, such that the remainder of the heading should be
> left-aligned,
I'd like to refer to the recent thread "CSS: basic indentation question",
which was mistakenly started in c.i.w.a.h but continued here. It dealt
with similar issues for headings (h2 etc.) and paragraphs. Some of the
ideas suggested there might apply to your case.
> I suppose this should all be in a CAPTION element, but alternatively
> it could be an H1 preceding the TABLE element.
Using a heading element of suitable level is imaginable, and then e.g.
the technique I suggested would seem to work. However, H1 does not sound
natural if it's "Table 3".
In this case my approach could mean markup like
<h2><span class="nr">Table 3.</span>
Wheat and rye harvest in European countries in years that end
in 3 or 7 or when a new prime minister takes office.</h2>
and CSS code like
h2 { position: relative;
margin-left: 4.5em; }
h2 .nr { position: absolute;
left: -4.5em; }
h2 { font-size: 100%;
margin-bottom: 0.5em; }
The awkward part is guessing a value like 4.5em so that there's not too
much gap and no overlap of the "Table 3." text and the heading text -
because the width of the text "Table 3." varies by font size.
It would in my opinion be better to use <caption> markup, but e.g. <h2>
isn't wrong either, and styling <caption> seems to be more difficult.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
|
|
|
| [
Post Follow-Up to this message ]
|
|
|
|
|
 |
|
|
 |
|
|
 |
|
|
 |
| All times are GMT. The time now is 03:58 PM. |
 |
|
|
|
|
|  |
|