In bootstrap by using list-group-horizontal class you can arrange the list group to horizontal. Add .active to a .list-group-item to indicate the current active selection. To create a basic list group, use an
- element with class .list-group, and
- elements with class .list-group-item: Example. Bootstrap horizontal forms with input controls example. We separate these pseudo-classes to ensure list groups made of non-interactive elements (like
- s or s) don’t provide a click or tap affordance.
- Second item
. And when used on links, it will remove the hover effect: Use the .list-group-flush class to remove some borders and rounded corners: If you want the list items to display horizontally instead of vertically (side by side instead of on top of each other), add the .list-group-horizontal class to .list-group: Contextual classes can be used to color list items: The classes for coloring list-items are: So check a typical structure of Bootstrap markup. Bootstrap CSS class list-group-horizontal-md with source code and live preview. Add .list-group-flush to remove some borders and rounded corners to render list group items edge-to-edge in a parent container (e.g., cards). Horizontal Grid: Summary You can easily make a layout where you Bootstrap columns are stacked on a small screen, yet on larger ones, they are still in Bootstrap horizontal align. You can copy our examples and paste them into your project! Et excepteur consectetur ex nisi eu do cillum ad laborum. Use 230+ ready-made Bootstrap components from the multipurpose library. So here is the complete step by step tutorial for Create horizontal list group with hover effect using Bootstrap classes in HTML,PHP. The most basic list group is an unordered list with list items: To create a basic list group, use an- element with class .list-group, and
Add .disabled to a .list-group-item to make it appear disabled. List groups are a flexible and powerful component for displaying a series of content. You can make horizontal definition list using the Bootstrap class.dl-horizontal. Be sure to not use the standard .btn classes here. Bootstrap 4 Horizontal Divider CSS with Text. Also it’s not made to do the same if content are in a div or list where the div or list is needed to position center. and instead of
- . You can activate a list group navigation without writing any JavaScript by simply specifying data-toggle="list" or on an element. Basic example. Activates a list item element and content container. In those scenario Bootstrap inline list item style will come handy. Donec id elit non mi porta gravida at eget metus. Voluptate deserunt sit sunt nisi aliqua fugiat proident ea ut. If you want to report an error, or if you want to make a suggestion, do not hesitate to send us an e-mail: