C:\DITA\WKFS_oXygen_Files\fragments\webhelp.fragment.head.xml
Jump to main content C:\DITA\WKFS_oXygen_Files\fragments\webhelp.fragment.before.body.xml

# Changing Border Colors in a Table

You have a requirement to apply non-default (black) color to the border of one or more table cells in a table. The target REQ file is open in the Requirements Editor.
Some documents, specifically those related to TILA/RESPA, require the table border (and table cell borders) to be gray color and also require select cell borders to be light gray (hex: #CDCDCD) while others to maintain the black color (the default color is black). The border color of an individual table cell (top, left, bottom, right) is defined by setting the hex value using one of the following attributes: TopBorderColor, LeftBorderColor, BottomBorderColor, and RightBorderColor. This are enabled when the respective Border attribute is set to Yes. For example, you must set RightBorder to Yes and then define RightBorderColor. The suggested HEX value for light gray is #CDCDCD.

1. In a table, select a table cell.
2. With the table cell (entry element) active selection, right-click and select AddAttribute.
3. In the Attributes list, select either the RightBorder, LeftBorder, TopBorder, or BottomBorder attributes and ensure the value is Yes.
4. In the Attributes list, select the corresponding color attribute (RightBorderColor, LeftBorderColor, TopBorderColor, or BottomBorderColor).
5. In the -Color attribute, double click the attribute and change the attribute value (No Value) to the desired HEX value (light gray = #CDCDCD).
   Color changes using these attributes must be entered as HEX values; there is no option to use the color palette or non-HEX entity values.

C:\DITA\WKFS_oXygen_Files\fragments\webhelp.fragment.after.body.xml