Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove row lines in twitter bootstrap

I'm using twitter bootstrap for some web app I'm forced to do (I'm not a web developer) and I can't find a way to disable the row lines for tables.

As you can see from the Bootstrap documentation, the default table style contains line rows.

Regards,

like image 438
w00t Avatar asked Jan 16 '12 03:01

w00t


People also ask

How to remove row border bootstrap?

Bootstrap By Building Projects - Includes Bootstrap 4Use the border-top-0 class to remove the top border from an element.

How do I remove lines between rows in a table?

Select the cells where you want to remove some borders. On the Table Design tab, click the arrow next to Borders and select the options you want.

Which bootstrap 4 class can be used to make a borderless table?

Add .table-borderless for a table without borders.

How do I add a space between rows in bootstrap?

If you need to separate rows in bootstrap, you can simply use . form-group . This adds 15px margin to the bottom of row.


2 Answers

Add this to your main CSS:

table td {     border-top: none !important; } 

Use this for newer versions of bootstrap:

.table th, .table td {       border-top: none !important;   } 
like image 105
Andres Ilich Avatar answered Oct 13 '22 17:10

Andres Ilich


In Bootstrap 3 I've added a table-no-border class

.table-no-border>thead>tr>th,  .table-no-border>tbody>tr>th,  .table-no-border>tfoot>tr>th,  .table-no-border>thead>tr>td,  .table-no-border>tbody>tr>td,  .table-no-border>tfoot>tr>td {   border-top: none;  } 
like image 28
dex412 Avatar answered Oct 13 '22 16:10

dex412