Tiny blemish in BootstapVue table's sticky header

I'm facing an issue with the sticky header function in BootstrapVue and I can't figure out what needs to be customized to get it working properly.

Check it out here:
Jsfiddle

<div id="app">
  <div>
    <b-table style="max-height: 50vh;" sticky-header bordered :items="items"></b-table>
  </div>
</div>

If you scroll down the table, you'll notice a small gap above the 'sticky-header' that is quite annoying!

Take a look at this screenshot: https://i.sstatic.net/2hEq0.png

I've tried inspecting it in the browser but I can't seem to locate that header box...

Calling all CSS experts! Can someone help me reduce this irritating gap to zero? :)

Answer №1

Here is a suggestion that may be useful:

.b-table-sticky-header > .table.b-table > thead > tr > th { top: -1px }

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Retrieve information from ngResource (angularjs) based on the chosen item

I am currently developing a small application that needs to display a list of cities only when a country is selected using ngResource in angularjs. The problem I am facing is that the entire list of countries and cities is being rendered initially, causing ...

Design a responsive layout featuring a div containing four buttons that incorporate text and logos using Bootstrap 5

Looking for help with a web application built using HTML/CSS/Bootstrap 5/JS and Rust/Actix-web? Check out the code here. The index page of the app features a navbar and a div containing four buttons in the center (vertically and horizontally aligned). The ...

Adjust the color of a specific cell within a table using JavaScript

I am looking to dynamically change the row color based on the content of a <td> tag using only HTML, CSS, or JS within my current application setup that does not support external src. Below is the code snippet: table { width: 750px; border-c ...

"Embracing Flexbox for a fully responsive mobile experience

What's the best way to make this flexbox design responsive for mobile devices? I want the layout to look consistent across both desktop and mobile screens. The issue seems to be related to the responsiveness of the flexbox and the smaller size of mobi ...

What's the issue with my ExpressJS req.query not functioning as expected?

My NodeJS repl setup includes an input, button, and h1 element. The goal is to update the HTML inside the h1 element with the value of the input upon button click. Here's a glimpse of my code: index.js: const Database = require("@replit/database ...

Permanent header that clicks into place below the primary fixed header

I've been collaborating with fellow developers on this platform to tackle a persistent issue related to a fixed header. Here is the updated fiddle for reference: http://jsfiddle.net/f95sW/ The Challenge 1) As you scroll down the page, the yellow bl ...

Extracting data from a database using PEAR for Excel: Enumerating columns

One aspect of my website allows users to extract an Excel file using data from a database, with the help of the PEAR library. The Excel table that is generated currently has 32 columns. My main goal is to insert a 33rd column that assigns a number startin ...

Tips for aligning two divs on top of each other

I'm trying to figure out how to have divs start drawing from the same point. Essentially, I want to be able to add new divs and have them appear stacked on top of each other, so that they can all move together based on a single reference point. Here& ...

What is the best way to ensure a division's height matches that of the window using CSS?

Is it possible to create a division that covers the total width and height of the screen using just CSS without relying on JavaScript or jQuery? <div id="all"></div> I have tried setting the width and height of the element to 100%, but I am s ...

Broken styles when using Material UI with babel and the 'with styles' feature

We've implemented babel and lerna to maintain specific elements of our react web app separately. While the setup has been effective thus far, we're encountering styling issues when generating the static build. The main project is not processed t ...

How can I position the label at the top?

Visit this jsfiddle link Is it possible to align the label on top and select at the bottom within the given HTML structure as shown in the picture? <div class="col"> <label for="foo">Select:</label> <select id="foo" name="select"> ...

Blazor Server: Seamless breadcrumb navigation updates with JavaScript on all pages

I have implemented a breadcrumb feature in my Blazor Server project within the AppLayout that functions for all pages: <ul id="breadcrumbs" class="breadcrumbs"> <li><a href="#">Home</a></li> ...

There is a space above the second div when using display inline-block

I'm encountering an issue with the display inline block property. I have two divs that I want to position next to each other, but there's a strange gap above the second div (#store_header_text) that I can't seem to explain. I've tried r ...

To activate a function, simply click anywhere on the body: instruction

One of my latest projects involved creating a directive that allows users to click on a word and edit it in a text box. Once edited, clicking anywhere on the body should return the word back to its updated form. html <div markdown>bineesh</div& ...

Crop box overlaying video background

Utilizing jCrop to establish a crop region for a video element. My goal is to make the video section within the crop area fill a container with identical proportions, but I'm encountering challenges with the mathematical calculations. The sizes of th ...

Issues with Angular-Trix compatibility with Internet Explorer 10

I am currently using the Angular-trix rich text editor, which is functioning perfectly in all browsers including IE 11. However, I am encountering issues with it not working in IE10 or earlier versions. An error message that keeps appearing states: Una ...

Is it safe to exclusively use CSS Selector [type="text"] instead of input[type="text"]?

I've been pondering the safety of exclusively using [type="text"] instead of input[type="text"] in CSS. My concern is that when using input[type="text"], I'm unable to override it with a single class selector. // HTML <input type="text" clas ...

contenteditable -- Utilizing AngularJS to create a block element for the title only

When I click on an input field that is editable, I want the background color to change to white within the box. Can someone please assist me with this? Below is my code: HTML <div id="section{{section.index}}"> <h2 class="title" contentedit ...

What is the method for altering the value of a class within another class?

Check out this piece of code: <div id="one"> <div id="two"> <div class="cell_pad"> </div> </div> </div> How can you instruct CSS to modify the value of class "cell_pad" within the container of id="one"? Th ...

Struggling to Incorporate Bootstrap 4 SCSS into Angular-Cli 1.5

After updating my CLI project to Angular 5/ CLI 1.5, I encountered persistent errors from Bootstrap 4 regardless of my attempts to resolve them. The primary error I'm facing is: ERROR in ./node_modules/css-loader?{"sourceMap":false,"importLoaders":1} ...