-
Bootstrap List Groups
In this tutorial you will learn how to use Bootstrap list group component. Creating List Groups with Bootstrap The list groups are very useful and flexible component for displaying lists of elements in a beautiful manner. In most basic form a list group is simply an unordered list with the class .list-group whereas, the list items having the class .list-group-item.…
-
Placing Ordered and Unordered List Items Inline
If you want to create a horizontal menu using the ordered or unordered list you need to place all list items in a single line (i.e. side by side). You can do this simply by adding the class .list-inline to the <ul> or <ol>, and the class .list-inline-item to the child <li> elements. Example — The output of the above example will look something…
-
Creating Responsive Tables with Bootstrap
You can also create responsive tables to enable horizontal scrolling on small devices. To make any table responsive just place it inside a <div> element and apply the .table-responsive class on it. You can also specify when the table should have a scrollbar, based on the viewport width (i.e. breakpoints), using the classes .table-responsive{-sm|-md|-lg|-xl}. Let’s try out the following example to…
-
Enabling Hover State on Table Rows
You can also enable a hover state on table rows within a <tbody> element by adding the modifier class .table-hover to the .table base class. Let’s try out the following example: Example — The output of the above example will look something like this: Creating Small or Compact Tables You can also make your tables more compact and save the space…
