Definition List In Bootstrap
See the tutorial on html lists to learn more about different lists types.
Definition list in bootstrap. These lists can be styled using bootstrap like placing them inline grouping list items applying contextual states for list items and so on. Definition list a list of terms with their associated descriptions. The description list is created using dl element. Bootstrap provides the classes list group item heading and list group item text which can be used as follows.
Are description list are not good for this usecase. Documentation and examples for bootstrap typography including global settings headings body text lists and more. To align these two items horizontally you can use the grid system that we learned about in bootstrap 4 grid tutorial if you want to cut a longer piece of text you can use the text truncated utility. I use definition list dl dd dt to render view page details of an entity.
You can add nearly any html inside a list group item. A description list is a list of items with a description or definition of each item. When more control is needed check out the textual utility classes. Bootstrap sets basic global display typography and link styles.
The bootstrap list class makes the data term and data description to align side by side with left aligned. Modify and extend them to support just about any content within. Unordered list ordered list and definition list are three types of lists. When use with twitter bootstrap when dd dd is empty all of the contents shifts to top.
On each line you can have a term and a definition. This is undesirable to show details of an object which may contain some properties empty. The list items in ordered lists are marked with numbers e g. You can make horizontal definition list using the bootstrap class dl horizontal.
You can create lists that have two parts. The dl element is used in conjunction with the dt element which specify a term and the dd element which specify the term s definition.