Add a visual design with styling
You can apply CSS styles to the pipeline-generated HTML for classes of content.
If you want to assign content-specific styles to the document, it is a good practice to generate class attributes on elements in the XSL Stylesheet. Then the CSS Stylesheet declares styles for the class attribute values. For example, the recipe demo applies a Christmas-style background to Christmas recipes.
Knowledge Center does not have any requirements on the CSS Stylesheet: you can use any valid CSS properties and selectors in your stylesheet.
We advise you to link to the CSS Stylesheet in the <head> element of the island webpage. If you generate CSS Stylesheet declarations in the XSL Stylesheet, you must be aware that these declarations will also apply to HTML outside the editable canvas. The complete web page design may be altered by these generated styles.