Text Formatting and Positioning
Bold and italic
A bold *word*, a *bold phrase*, and bold c**hara**cter**s**.
An italic _word_, an _italic phrase_, and italic c__hara__cter__s__.
*_bold italic phrase_* and **__char__**acter**__s__**
The example above is published as:
A bold word, a bold phrase, and bold characters.
An italic word, an italic phrase, and italic characters.
bold italic phrase and characters
You can add multiple inline styles to text as long as the syntax is placed in the correct order.
-
Bold syntax (
*
) must be outside the italic formatting set. -
Italic syntax (
_
) is always the innermost formatting set.
Highlight and underline
To highlight text, also called mark in HTML, enclose the text in a set of hash symbols (#
).
#If the medical care provider charges less than the maximum amount listed in the Document, allow the lesser of the two amounts.#
The example above displays as:
If the medical care provider charges less than the maximum amount listed in the Document, allow the lesser of the two amounts.
The underline role should be used sparingly as it can be difficult to read. Do not apply the underline role to page titles, section headings, table, image, or list titles, as these elements have built-in styles that are applied by the PAMMS website stylesheet.
To underline text, apply the underline role to text enclosed in a set of hash symbols (#
).
[.underline]#If the medical care provider charges less than the maximum amount listed in the Document, allow the lesser of the two amounts.#
The example above displays as:
If the medical care provider charges less than the maximum amount listed in the Document, allow the lesser of the two amounts.
Center and right positioning
Text positioning should be used at a minimum. Your documents are published to the PAMMS site using responsive web design principles. That means the location of the text on the screen is going to change depending on the device and size of the device screen it’s being viewed on.
Don’t position text using spaces or tabs.
The site generator removes preceding spaces and tabs in front of text at the beginning of lines when it converts the AsciiDoc to HTML, or your text will be interpreted as monospace (monospace
is often used to display code) and displayed as such in the site.
Text is positioned to the left by default.
To center text, use the role .text-center
placed directly above the text you’d like centered.
This is a paragraph.
[.text-center]
This is a paragraph that is centered.
This line is centered, too, because it is part of the paragraph.
This paragraph isn't centered because the blank line above ends the previous paragraph.
The example above displays as:
This is a paragraph.
This is a paragraph that is centered. This line is centered, too, because it is part of the paragraph.
This paragraph isn’t centered because the blank line above ends the previous paragraph.
To position text to the right, use the role .text-right
.
[.text-right]
This is a paragraph positioned to the right.
The example above displays as:
This is a paragraph positioned to the right.
Do not use the text positioning roles on:
-
page titles
-
section headings
-
list, table or image titles
-
in tables
Headings and titles have their own styles that are controlled by the PAMMS website UI. To position text in tables, use the column, row, and cell modifiers specific to styling table cells.