Bootstrap CSS Classes

Bootstrap CSS class .list-group

<ul class="list-group">
  <li class="list-group-item">Morbi leo risus</li>
  <li class="list-group-item">Porta ac consectetur ac</li>
  <li class="list-group-item">Vestibulum at eros</li>
</ul>

Preview

CSS source

/* _card.scss:78 */
+ .list-group {
  .list-group-item:first-child {
    border-top: 0;
  }

/* _list-group.scss:5 */
.list-group {
  display: flex;
  flex-direction: column;

  // No need to set list-style: none; since .list-group-item is block level
  padding-left: 0; // reset padding because ul and ol
  margin-bottom: 0;
}

Check .list-group in a real project

Click one of the examples listed below to open the Shuffle Visual Editor with the UI library that uses the selected component.

More Bootstrap CSS classes in List Group category

© 2024 Shuffle. All rights reserved.