This pages gives an overview of how CSS import works for the ODT character styles.
The following sections shows the paragraph styles and describes their CSS import:
The “Emphasis” style is applied to italic text. The CSS import is performed in the following way:
The style “Strong Emphasis” is applied to bold text. The CSS import works like for “Emphasis” with the difference that the element strong is used.
The style “Source Text” is applied to monospaced text. The CSS import works like for “Emphasis” with the difference that the element code is used.
The style “Internet Link” is applied to external links. The CSS import works like for “Emphasis” with the difference that the element a with pseudo-class link is used.
The style “Visited Internet Link” is applied to visited external links. The CSS import works like for “Emphasis” with the difference that the element a with pseudo-class visited is used.
The style “Local Link” is applied to local links. The CSS import works like for “Emphasis” with the difference that the element a with class wikilink1 and pseudo-class link is used.
The style “Visited Local Link” is applied to visited local links. The CSS import works like for “Emphasis” with the difference that the element a with class wikilink1 and pseudo-class visited is used.
The style “Underlined” is an automatic style so you will not find it under “Styles and Formatting” in LibreOffice. It is applied to underlined text. The CSS import works like for “Emphasis” with the difference that the element u is used.
The style “Del” is an automatic style so you will not find it under “Styles and Formatting” in LibreOffice. It is applied to Strike-through text. The CSS import works like for “Emphasis” with the difference that the element del is used.
This section gives an overview of the supported and not supported properties.
This is not a complete list. If you notice that a working or not working property is missing please add it here. Thanks!
Property Name | Remarks |
---|---|
background-color | |
border | |
border-top | |
border-right | |
border-bottom | |
border-left | |
color | |
font-family | |
font-size | |
font-style | |
font-weight | |
letter-spacing | |
padding | |
padding-top | |
padding-right | |
padding-bottom | |
padding-left | |
text-align | |
text-decoration |
Property Name | Remarks |
---|---|
box-shadow | There is no equivalent ODT style setting/attribute. |