question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Option to remove the thick bottom border from `thead` and top border from `tfoot` in table element

See original GitHub issue

Prerequisites

Proposal

There should be an option to remove the thick glaring dark bottom border from thead and top border from tfoot in the table element.

image

Motivation and context

Not everybody will like this. I have updated a big project (which has hundreds of tables) to bootstrap 5.1.3. Now I need to remove the thick glaring dark bottom broder from thead and the top border from tfoot in the table element.

Right now, how can I remove these borders using custom CSS? Please help me.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:7
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

23reactions
nkdas91commented, Nov 9, 2021

@TanvirArjel

This is the CSS that adds the borders

.table > :not(:first-child) {
    border-top: 2px solid currentColor;
}

You may use the following to remove them

.table > :not(:first-child) {
    border-top: 0;
}
1reaction
membersoundcommented, Feb 7, 2022

Don’t forget you can access the original grey color using the CSS variable var(--bs-gray-300).

So in my case it has to be a --bs-gray-600 for being the same as solid gray. Thnx!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Examples of table borders and rules - W3C
A complex table head, but no rules in the body. thead { border-top: solid thick; border-right: blank; /* prevent colgroup border */ border-left:...
Read more >
<tfoot>: The Table Foot element - HTML - MDN Web Docs
This attribute specifies the vertical alignment of the text within each row of cells of the table footer. Possible values for this attribute...
Read more >
How to remove only bottom border on specified row in html table
I have simple html table on which I want to remove bottom border of tr on specific row. The table <table cellpadding="5"> <thead>...
Read more >
tfoot in my table has a border I cannot get rid of - Treehouse
I created a table that has a border. The tfoot (or table footer) has a border as well and I do not want...
Read more >
How to remove a border — DataTables forums
I tried border: none !important and other ways but it didn't change. It comes fro this code: // Setup - add a text...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found