Horizontal Description List
If you want the first term and description of an item to start on the same line (i.e., horizontal arrangement), add the horizontal style to the description list.
[horizontal]
CPU:: The brain of the computer.
Hard drive:: Permanent storage for operating system and/or user files.
RAM:: Temporarily stores information the CPU uses during operation.
CPU |
The brain of the computer. |
Hard drive |
Permanent storage for operating system and/or user files. |
RAM |
Temporarily stores information the CPU uses during operation. |
By default, the term and description columns will be sized automatically. If the content is not arranged in the way that you want, you need to adjust the width distribution.
You can control the width of the term and description columns using the (improperly named) labelwidth
and itemwidth
attributes on the list, respectively.
Both attributes are optional.
The value of each attribute is a number from 0 to 100 (a unitless percentage).
If both attributes are specified, their values should add up to 100.
[horizontal,labelwidth=25,itemwidth=75]
A short term:: The term for this item likely fits inside the column's width.
A long term that wraps across multiple lines:: The term for this item wraps since the width of the term column is restricted using the `labelwidth` attribute.
A short term |
The term for this item likely fits inside the column’s width. |
A long term that wraps across multiple lines |
The term for this item wraps since the width of the term column is restricted using the |
When converting to HTML, you can assign a role to the description list instead to control the column widths using CSS.