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.

row is visible behind sticky table header

See original GitHub issue

Describe the bug

When using the sticky header I can see when scrolling part of the background row, and it looks kind of bad.

My table is defined as:

<b-table primary-key="id" :fields="fields" :items="nodes" :filter="filter" head-variant="light" sticky-header="77.3vh" show-empty hover bordered>


Also, setting the height to something like calc(100vh-100px) does not work.

Expected behavior

The background row should be completely hidden behind the header. I only found this to be an issue on chrome.



  • BootstrapVue: ^2.0.0-rc.28
  • Bootstrap: ^4.3.1
  • Vue: ^2.6.10


  • OS: Windows 10
  • Browser: Chrome 76.0.3809.132

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

sprocket99commented, Sep 19, 2019

no-border-collapse does fix the issue on v2.0.1 but it also makes the borders double as thick… taking the bordered off is not an option. Any workaround?

tmorehousecommented, Feb 6, 2020

That would make an assumption that all people are using the same default styles for the tables. You may need to target the header cell’s bottom border, not just the thead. Bootstrap v5 will be making some changes to how styles are applied to tables.

Read more comments on GitHub >

github_iconTop Results From Across the Web

A table with both a sticky header and a sticky first column
It's pretty easy to make the header of a table stick to the top of the screen while scrolling through a bunch or...
Read more >
How to Create a Table with a Fixed Header and Scrollable Body
In this tutorial, find some methods of creating an HTML table with a fixed header and scrollable body. Here, we suggest using some...
Read more >
Sticky Table Header in Vuetify.js | by Jarek Lipski - Medium
One solution to this problem is to always keep the table header visible when scrolling, and there are a couple of ways we...
Read more >
Table Sticky Header - Bootstrap Table
Table Sticky Header. Table Sticky Header extension of Bootstrap Table. This is an extension which provides a sticky header for the table when...
Read more >
Fixed Table Headers - Adrian Roselli
The different z-index values help ensure your column headers sit in front of your row headers. Otherwise the visible row header will look...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found