![]() |
VOOZH | about |
Bootstrap 5 List group Contextual classes are used to style list-group-items with different backgrounds and colors.
Bootstrap 5 List group Contextual Used Classes:
Syntax: This * can be substituted for any of the classes of above mentioned Classes
<ul class="list-group"> <li class="list-group-item list-group-item-*"> ... </li> </ul>
Example 1: In this example, we will learn about the primary, success, and secondary classes of Bootstrap5.
Output:
Example 2: In this example, we will learn about the danger, warning, light, and dark classes of Bootstrap5.
Output:
Reference: https://getbootstrap.com/docs/5.0/components/list-group/#contextual-classes