### 8.2 Defining border subformats

Border subformats 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 subformat to the item to be bordered. The default is no border.

As a convention, the name of any border subformat should end in Border. If you give a border subformat 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 subformat. (But see §8.10 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 subformats

Property | Description
    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 subformat properties can be based on the properties of other border subformats. 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 subformats

Parent Topic: 8. Configuring format components

Sibling Topics:

8.1 Managing format components

8.3 Defining shading subformats

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 index see and see-also entries

8.9 Configuring trademark formats

8.10 Localizing output headings, labels, and names