Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove a list item border in bootstrap list group?

I just want to remove the first list-group-item top border:

<ul class="list-group">   <li class="list-group-item borderless">Cras justo odio</li>   <li class="list-group-item">Dapibus ac facilisis in</li>   <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>  .borderless li {     border-top: none; } 

but doesn't work, Anybody can help me, Thanks in advance!

like image 627
pangpang Avatar asked Sep 01 '15 02:09

pangpang


People also ask

What is list Group flush?

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).

How do I remove a row border in bootstrap?

its simple just add class table-bordered{border:0px;} or table-bordered{border:none;} any of them you can use.

How you can add a badge to a list group in bootstrap?

Add the badges component to any list group item and it will automatically be positioned on the right. Just add <span class = "badge"> within the <li> element.

What is the use of list Group in bootstrap?

List Groups are used to display a series of content. We can modify them to support any content as per our needs. The use of List-Groups is just to display a series or list of content in an organized way.


1 Answers

In Bootstrap 4.0 you can simply set each individually or all using the border-* class.

<ul class="list-group">     <li class="list-group-item border-0">One</li>     <li class="list-group-item border-top-0">Two</li>     <li class="list-group-item border-right-0">Three</li>     <li class="list-group-item border-bottom-0">Four</li>     <li class="list-group-item border-left-0">Five</li> <ul /> 

Bootstrap 4.0 Borders Documententation

like image 96
Mike Avatar answered Sep 17 '22 13:09

Mike