Customizing the Main CSS of a Document Type
The easiest way to customize the main CSS stylesheet of a document type is to create a new CSS stylesheet, save it as an alternate CSS file that will be applied as an additional layer to the main CSS, and then select it from the Styles drop-down menu in Author mode.
For example, suppose that you want to customize the main CSS for DITA documents. To do this, follow these steps:
- First, create a new CSS stylesheet and save it in the
[OXYGEN_INSTALL_DIR]/frameworks/dita/css/edit
folder (where the default main stylesheet namedstyle-basic.css
is located). - Edit the DITA framework and go to its CSS subtab:
- Open the Preferences dialog box and go to Document Type Association.
- Select the DITA document type and press the Edit button.
Tip
If you do not have write permissions to modify the document type, use the Extend button to create an extension of the framework.- Go to the CSS subtab of the Author tab.
- Add the new stylesheet as an alternate CSS stylesheet:
- Press OK in all the dialog boxes to validate the changes.
- Select your newly created CSS stylesheet from the Styles drop-down menu on the toolbar in Author mode.