Definition List
Style the definition list elements.
Overview
Resource location: | @import url("https://jorsek.github.io/pdfgen.github.io/styles1.1/modules/dita/definition_list.css"); |
Common Customizations
You can apply customizations by pasting the following code snippets under the @import
rules.
- Enlarge definition list titles
-
/* Enlarge definition list titles. */ dt, dt * { font-size: 26px !important; }
- Remove the left border from definition list entries
-
/* Remove the left border from definition list entries. */ dt, dd { border: none; padding-left: 0px; }
- Add background shading to definition list entries
-
/* Add background to the definition list entries. */ dt, dd { background-color: #f4f4f4; padding-top: 5px; } dd { padding-bottom: 5px; }
- Lay out definition list elements in two or more columns
-
/* Lay out definition list elements in two or more columns. */ dl { column-count: 2; /* "2" or more */ }
Tip: For Heretto PDF Generator, setting a high number of columns for definition list elements works well with landscape document orientations. For more information about the document orientation and page size, see Page Orientation, Size, Margins.