Skip to content

Commit 2ddddc1

Browse files
committed
[css2] Added some text on horizontal alignment
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%40220
1 parent a1db3b2 commit 2ddddc1

1 file changed

Lines changed: 34 additions & 11 deletions

File tree

css2/tables.src

Lines changed: 34 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<html lang="en">
3-
<!-- $Id: tables.src,v 1.16 1997-10-03 20:50:19 ian Exp $ -->
3+
<!-- $Id: tables.src,v 1.17 1997-10-09 11:11:19 bbos Exp $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
66
<title>Tables</title>
@@ -128,7 +128,6 @@ class="propinst-column-span">'column-span'</span>,
128128

129129
<!-- #include src=properties/row-span.srb -->
130130

131-
132131
<p>How many rows a cell spans. See <a href="#table-layout">"Table
133132
layout"</a> above for a discussion of how it is used to lay out cells
134133
in a table.
@@ -299,10 +298,10 @@ the start of the following list will be drawn:</p>
299298
'inset' will be drawn as 'groove'.</p>
300299

301300
<p>If the borders only differ in color, a color different from the
302-
<span class="propinst-color">'color'</span> property of the two cells on either side will be preferred
303-
over a color that only differs from one of the cells, which in turn
304-
will be chosen over a border that doesn't differ in color from the
305-
cells.</p>
301+
<span class="propinst-color">'color'</span> property of the two cells
302+
on either side will be preferred over a color that only differs from
303+
one of the cells, which in turn will be chosen over a border that
304+
doesn't differ in color from the cells.</p>
306305

307306
<p>If none of these rules determine the color of the border, the UA is
308307
free to choose one of the colors.</p>
@@ -424,20 +423,44 @@ violating this rule.</p>
424423

425424
<h2>Horizontal alignment of cells in a column</h2>
426425

426+
<p>A cell is similar to a block in the way its contents are rendered,
427+
that means, in particular, that <span
428+
class="propinst-text-align">'text-align'</span> applies to
429+
it. However, tables also allow a way of aligning text that does not
430+
apply to other blocks, and that is aligning the contents of several
431+
cells so that they all align on, e.g., a decimal point.
432+
433+
<p>More precisely, if the value of 'text-align' for a certain cell is
434+
a string, that cell has an <dfn>alignment point</dfn>, which is the
435+
start of that string. The aligment point must be straight above or
436+
below the alignment points of all other cells in the same column that
437+
have an alignment point. (Note that the other cells do not need to
438+
have the same value for <span
439+
class="propinst-text-align">'text-align'</span>; as long as they are
440+
aligned on a string, they have an alignment point.)
441+
442+
<p>Aligning text in this way is only useful if the text is short
443+
enough not to be broken over several lines. The result is undefined if
444+
the text <em>is</em> broken.
445+
446+
<p>If the string occurs more than once in the cell's content, the
447+
alignment point is the start of the first occurrence.
448+
449+
<p>If the string doesn't occur, the alignment point is the end of the
450+
content.
451+
427452
<h2>Table captions: the <span
428453
class="propinst-caption-side">'caption-side'</span> property</h2>
429454

430455
<!-- #include src=properties/caption-side.srb -->
431456

432-
<h2>Floating elements inside cells</h2>
433-
434-
<p>... stay inside the cell? </p>
435-
436457
<h2>Generating speech: the <span
437458
class="propinst-speak-header-cell">'speak-header-cell'</span> property</h2>
438459

439460
<!-- #include src=properties/speak-header-cell.srb -->
440461

462+
<p>[Does 'speak-header' apply to TH or to TD?]
463+
441464
<p>When a table is spoken by a speech generator, the relation between
442465
the data cells and the header cells must be expressed in a different
443466
way than by horizontal and vertical alignment. Some speech browsers
@@ -587,7 +610,7 @@ spoken wasn't associated with this header.</p>
587610
</html>
588611
<!-- Keep this comment at the end of the file
589612
Local variables:
590-
mode: sgml
613+
mode:sgml
591614
sgml-declaration:"~/SGML/HTML4.decl"
592615
sgml-default-doctype-name:"html"
593616
sgml-minimize-attributes:t

0 commit comments

Comments
 (0)