Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
2.1.169 Part 4 Section 2.4.63, tcBorders (Table Cell Borders)
Collapse the table of content
Expand the table of content

2.1.169 Part 4 Section 2.4.63, tcBorders (Table Cell Borders)

For additional notes that apply to this portion of the standard, please see the notes for tcPr, §2.7.5.8(b) .

a. The standard specifies a method for resolving border conflicts.

Word determines top, bottom, left, and right cell border for each cell as follows:

If the cell border is omitted, find the cell border from the table style ("[ECMA-376] Part 4 §2.7.5; Table Styles").

If the cell border is still not specified, find the appropriate border from the table-level border exceptions ("[ECMA-376] Part 4 §2.4.37; tblBorders").

If the cell border is still not specified, find the appropriate border from the table-level borders ("[ECMA-376] Part 4 §2.4.38; tblBorders").

If the cell spacing is nonzero as specified using the tblCellSpacing element ("[ECMA-376] Part 4 §2.4.41; tblCellSpacing", "[ECMA-376] Part 4 §2.4.42; tblCellSpacing", "[ECMA-376] Part 4 §2.4.43; tblCellSpacing"), then all cell borders and outer table borders display.

If the cell spacing is zero, then there may be a conflict between two adjacent borders. In Office, this conflict is resolved using the following procedure:

If either conflicting table cell border is nil or none (no border), then the opposing border shall be displayed.

Each border shall then be assigned a weight using the following formula, and the border which has a higher value using this calculation shall be displayed over the alternative border:

Ff529927.aaa64e1b-8952-455a-bfaf-b903a16547e4(en-us,office.12).jpg

The border width shall be specified in measurements of eighths of a point. The border number shall be determined by the following list. The borders with dotted and dashed styles shall be assigned the weight 1 regardless of the border width and number.

Border Number

single

1

thick

2

double

3

dotDash

8

dotDotDash

9

triple

10

thinThickSmallGap

11

thickThinSmallGap

12

thinThickThinSmallGap

13

thinThickMediumGap

14

thickThinMediumGap

15

thinThickThinMediumGap

16

thinThickLargeGap

17

thickThinLargeGap

18

thinThickThinLargeGap

19

wave

20

doubleWave

21

dashSmallGap

22

dashDotStroked

23

threeDEmboss

24

threeDEngrave

25

outset

26

inset

27

If the borders have an equal weight, then the higher of the two on this precedence list shall be displayed:

single

thick

double

dotted

dashed

dotDash

dotDotDash

triple

thinThickSmallGap

thickThinSmallGap

thinThickThinSmallGap

thinThickMediumGap

thickThinMediumGap

thinThickThinMediumGap

thinThickLargeGap

thickThinLargeGap

thinThickThinLargeGap

wave

doubleWave

dashSmallGap

dashDotStroked

threeDEmboss

threeDEngrave

outset

inset

If the borders have an identical style, then each border color shall be assigned a brightness value as follows:

Ff529927.30d893b8-d9ef-4c2d-82c0-fb9d3bb5f082(en-us,office.12).jpg

The color with the smaller brightness value shall be displayed.

If the borders have an identical brightness value, then each border color shall be assigned a new brightness value as follows:

Ff529927.06101610-0d3a-42a0-b5bd-b9e40e77e2a3(en-us,office.12).jpg

The color with the smaller brightness value shall be displayed.

If the borders have an identical brightness value, then each border color shall be assigned a brightness value as follows:

Ff529927.c9c8607f-e4d7-47a2-89d1-02825d86f046(en-us,office.12).jpg

The color with the smaller brightness value shall be displayed.

If the borders have an identical brightness value, then they are functionally identical, and the first border in reading order should be displayed.

Show:
© 2015 Microsoft