Managing table styles

Managing table styles
The table styles used in the Composition Center text editor are defined in a compositioncenter.css style sheet file. You can edit the style sheet file to add new customized styles or to modify the existing styles.
When upgrading and installing hotfixes, the compositioncenter.css file is overwritten. To save customized styles, you must store a copy of the file in a safe place before redeployment.
Adding new table styles
You add new styles by adding new classes to the style sheet file.
Each class must have a unique and descriptive name, since the class name is exposed in the Composition Center text editor.
You add formatting to the style by defining CSS (Cascading Style Sheet) properties for the class. The properties should be within brackets, as described in Example 5.
Prerequisites
Before updating the compositioncenter.css file, we recommend that you back up the file.
Post requisites
You must synchronize the Composition Center compositioncenter.css file with the corresponding style sheet file for Ad Hoc Correspondence. See Managing table styles in the Ad Hoc Correspondence and Correspondence Reviewer documentation.
To add a new table style
1
<Portal root>\<Portal name>\css
2
3
4
Note:
Example 5
In this example, you add the following customized table style:
Click to enlarge
Figure 6
Since the heading row differs from the other table rows, you must define two new classes in the style sheet file.
In compositioncenter.css, you add a class named .CorpGreenTable for the table. The .CorpGreenTable class contains the formatting for font color, table width, thickness, and color for top and bottom borders.
.CorpGreenTable{
color:#228b22;
width:300pt;
border-top:2px solid #228b22;
border-bottom:2px solid #228b22;
}
In compositioncenter.css, you add a class named .CorpGreenHeading for the heading. The .CorpGreenHeading class contains the formatting for background and font colors.
.CorpGreenHeading{
background-color:#98fb98;
color:#000000;
}
In Composition Center, insert a new table and select the CorpGreenTable style. The inserted table have the following layout:
Click to enlarge
Figure 7
To give the heading the CorpGreenHeading style, click in the heading row, and select the CorpGreenHeading style. Now the table has the following layout:
Click to enlarge
Figure 8
 
OpenText StreamServe 5.6.2 Updated: 2018-01-26