Basic Text Formatting
Basic text formatting elements used in ebook formatting.
Description | Example Syntax | Result |
Bold Text | <b>Result</b> | Bold Text |
Italicized Text | <i>Italicized Text</i> | Italicized Text |
Subscript | H<sub>2</sub>O | H2O |
Superscript | Footnote<sup>8</sup> | Footnote8 |
Hyperlink | <a href = “http://www.unrulyguides.com/”>Unruly Guides Blog</a> | Unruly Guides Blog |
Email Hyperlink | <a href=”mailto:mail@mail.com”>mail@mail.com</a> | mail@mail.com |
CSS Text Formatting
The following features must be used as style arguments of a “span” or “div” tag surrounding the text.
Attributes may be combined under style=”” of the SPAN tag and separated by a semicolon as such:
<span style="text-decoration:underline; color:red">Text</span>
Description | Attribute Syntax | Result |
Underlined Text | text-decoration:underline | Underlined Text |
Font Color | color:red | Red Text.* |
Aligned Text | text-align:left/right/center/justify | Text will be aligned to the left, right, center or justified.** |
Change the Font | font-family:fontname | Text will be in style “fontname” |
Font Size | font-size:200% | 2x Size of base Text |
* Take care when specifying colors in your ebook. Some users may opt to read on a black screen (‘night’), and your colors may disappear.
* Black, or #000000, is the default color for ebooks. Do not ever specify black for any text in your book, otherwise, users choosing the ‘night’ screen (black background) will see black text on a black background.
** ebook alignment is by default, left, so there is no need to specify this in your layout.