Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Making heading in bootstrap list item?

I am trying to make something like this in bootstrap 3

enter image description here

This is what i have for now

<ul class="list-group">
  <li class="list-group-item">
    Cras justo odio
  </li>
  <li class="list-group-item">
    Dapibus ac facilisis in
  </li>
  <li class="list-group-item">
    Morbi leo risus
  </li>
</ul>
like image 577
Miomir Dancevic Avatar asked Jan 10 '23 22:01

Miomir Dancevic


1 Answers

please check the jsfiddle example,

from the image you've provided: css:

.borderless .list-group-item {
    border: none;
}

html:

<ul class="list-group borderless">
  <li class="nav-header disabled"><a>Header A</a></li>
  <li class="list-group-item">
    Cras justo odio
  </li>
  <li class="list-group-item">
    Dapibus ac facilisis in
  </li>
  <li class="list-group-item">
    Morbi leo risus
  </li>
</ul>

you can check it here

if you will have some questions please don't hesitate to ask, or comment the answer

like image 115
Stan Avatar answered Jan 18 '23 13:01

Stan