### 8.2 Defining border format components

Border format components apply to paragraph, table, row, and cell formats. When you want borders around text, parts of a table, or components of a page (RTF only), you assign the name of a border component to the item to be bordered. The default is no border.

As a convention, the name of any border component should end in Border. If you give a border format component a name that does not end in Border, if the definition is in a file different from the file where it is referenced, DITA2Go will not be able to find the format component. (But see §8.9 Localizing output headings, labels, and names.) Table 8-1 lists the border properties and the values you can assign to them.

Table 8-1 Properties of border format components

Property | Description
    help
| Any text to describe purpose or use of format
    type
| Names in parentheses are synonyms; hidden overrides all other properties:
single (solid)
double
dot (dotted)
dash (dashed)
hidden
(HTML only) transparent
(HTML only) inset
(HTML only) outset
(HTML only) ridge
(HTML only) groove
(RTF only) shadow
(RTF only) hairline
    color
| CSS color name; for HTML, this is the fill color in CSS terms
    thick
| Thickness of border; number and units
    space
| (RTF only) distance from content

Border format component properties can be based on the properties of other border format components. For example:

    [LightBorder]
    type = single
    color = black
    thick = 1pt
    space = 6pt

    [HeavyBorder]
    based = LightBorder
    thick = 2pt

    [DoubleBorder]
    based = LightBorder
    type = double

To override border properties for a particular instance of an element, you can specify a different property in the outputclass attribute for that instance. See §8.4 Overriding border and shading properties.

Previous Topic: 8.1.5 Including typographic tags and character formats

Next Topic: 8.3 Defining shading format components

Parent Topic: 8. Configuring format components

Sibling Topics:

8.1 Managing format components

8.3 Defining shading format components

8.4 Overriding border and shading properties

8.5 Configuring output numbering properties

8.6 Configuring run-in headings for text formats

8.7 Defining cross-reference output formats

8.8 Configuring trademark formats

8.9 Localizing output headings, labels, and names