This guide provides an overview of the CSS styles used in the openCPF project. There is also a template file (template.css ) which contains all non-standard style classes and can be used for new openCPF style sheets.
Container classes should only define attributes relevant to the container design - not those relevant to the containers' content (like text attributes). The content design should be configured using the content style classes
(see further below).
The following <div>
-containers exist and appear in the HTML-output in the order given below:
There is a text-style
class for each container. The reason for this is to separate the container design from the content design and therefore to provide more clarity.
In the HTML output, the text-classes
are always set in the container by default, e.g. <div id="content" class="contenttext">...</div>
The container-text-styles
are defined as:
.<CONTAINERNAME>text | normal text |
.<CONTAINERNAME>text A:link | link |
.<CONTAINERNAME>text A:hover | link with mouse over |
.<CONTAINERNAME>text A:active | active link |
.<CONTAINERNAME>text A:visited | visited link |
The #content
-container additionally has a title-class for the page title:
.contenttitle
And the #menu-container
a title-class for the titles of the menu categories:
.menutitle
Preview images and team pictures can be configured by the following styles:
The styles for standard tables are defined over the standard HTML table tags. Only the table title and footer-cells have a separate style-class. Namely the following styles are relevant for standard tables:
.tabletitle | title above the table |
table | table |
th | column titles |
tr | table rows |
td | table cells |
td.tablefooter | table footer cells |
Preview tables and info tables can be defined separately. The styles comply to the standard table stlyes and are named as follows: