Uneditable border in Bootstrap table

I am currently utilizing Bootstrap table to showcase some basic information, however, I am facing a peculiar problem.

Upon using the bootstrap-table stylesheet, the table displays as desired without an outer border. However, upon initializing the stylesheet, the entire table acquires a strange outline that I have been unable to remove, despite attempting to add the 'borderless' class.

Without CSS file: https://i.sstatic.net/j4Vpo.png

With CSS file: https://i.sstatic.net/EDk9P.png

HTML:

<div class="table-responsive">
   <table id="table" class="table table-dark table-responsive table-no-bordered">
      <thead>
         <tr>
            <th data-field="id">#</th>
            <th data-field="filename">#</th>
            <th data-field="type">#</th>
            <th data-field="comment">#</th>
            <th data-field="action">#</th>
         </tr>
      </thead>
      <tbody>
         <tr></tr>
         <tr></tr>
         <tr></tr>
         <tr></tr>
         <tr></tr>
      </tbody>
   </table>
</div>

JavaScript:

$('#table').bootstrapTable({
    data: response_Array,
    pagination: true,
    pageSize: 5
});
$('.fixed-table-loading').remove();

});

Answer №1

When examining the bootstrapTable example found here, it appears that the border is controlled by the css class .fixed-table-container.

If you want to remove the border using JavaScript, you can try adding this line:

$('.fixed-table-container').css('border', 'none');

Hopefully, this will successfully remove the border. Alternatively, you could also consider using inline or external CSS like this:

<style>
    .fixed-table-container {
        border: none;  /* or border: none !important; */
    }
</style>

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

Adding several lines of HTML content from an object using jQuery's append method

Currently, this is what I have: $(document).ready(function() { $.ajax({ type:"GET" , url:'{{url("/api/getcart")}}' , dataType:"json", success: function(data){ $('#price').append(data.cartitems[1].product.pr ...

Is there a way to make a specific panel the active one when the Bootstrap 5 accordion loads on a page?

Just starting out with Bootstrap, and I've configured my accordion with the last item set to class="accordion-collapse collapse show" Although the item opens when the page loads, the first panel is automatically selected. Is there a way to change thi ...

Bootstrap's nested rows do not adhere to the correct width specifications

After reading the post titled How to make a Bootstrap column span multiple rows?, I attempted to replicate the concept but encountered some difficulties. This is what I came up with: https://codepen.io/saka-rauka1/pen/MWodjao?editors=0010 render() { r ...

Customizing the Navigation Border-Bottom in WordPress

Currently, I am working on a project with this website. My main focus is on removing the border-bottom in the navigation bar for the last two right navigation points which are "DE" and "FR". Despite trying various CSS solutions, such as: #menu-item-394 { ...

What is the best way to eliminate excessive margin-bottom on a floating image?

Is it possible to maintain the same margin at the right and bottom of an image when using <img> inside <p><img style="float:left">dummy text dummy text dummy text dummy text</p>? ...

Effortlessly find data in an HTML table and showcase the results instantly without

I am looking for a way to implement search functionality in my table without refreshing the page. The fields above the table are used for searching and I want the results to be displayed within the same table. Here is an example of the code: <?php $for ...

What is the best way to move information from one table to a different one?

I have two tables: users2 and user_totals. Each of these tables has rows named clicks (impression_count), fclicks (use_count), and completed_stus (completion_count). The ones in brackets are the new additions in the user_totals table. I would like to tra ...

Combining onClick and a href within a single sentence: How can I effectively utilize both onClick

Currently, I have implemented the following code for a sliding menu bar. However, I am facing an issue where upon clicking on a href link, I want the ".gs-hamburger" function to slide up the menu bar after redirecting to the page. <nav class="gs-nav- ...

Issue with Laravel breadcrumbs not selecting the correct view

I'm currently utilizing the Laravel Breadcrumbs package from here: https://github.com/davejamesmiller/laravel-breadcrumbs Following all the provided instructions, I have successfully generated breadcrumbs. However, it seems that the package is not re ...

Is it possible to utilize the onClick event while preserving the use of "this" within the function it triggers?

There is a project with specific needs that require implementation. The task involves adding points to the total score when a button is clicked, without making any changes to the provided HTML code. This requires writing unobtrusive JavaScript code by atta ...

To style the input box, apply the CSS properties "filter: alpha(opacity=70);" and "background-image: url(image.png);"

Individual functionality for both the form and css has been achieved, but when trying to implement them together, they do not work as intended. This integration is specifically for a windows sidebar gadget. Here is the structure of the form: <form nam ...

The marquee HTML code is not functioning correctly in the Chrome browser

<marquee behavior="scroll" scrollamount="2" direction="right" width="70%" style="background-color: transparent; height: 18px;" onmouseover="this.stop();" onmouseout="this.start();"> 1 2 3 4 5 6 7 //inside html </marquee> Th ...

Implementing dual backgrounds in CSS

I am trying to achieve a gradient background for li elements along with different image backgrounds for each individual li. Is there a way to accomplish this? List of items: <div id="right_navigation_container"> <ul> <li id ...

Struggling to create a drop-down box with CSS and not achieving the expected results

Currently, I am delving into the world of HTML and CSS to hone my skills in front-end web development. While attempting to code a drop-down box within my navigation menu, I have encountered an issue where the drop-down opens at the left corner while the na ...

What is the best way to display a Bootstrap toggle?

I am facing an issue with a Bootstrap toggle in a Handlebars template. When the page initially loads, the toggle is visible, however, after re-templating the Handlebars template that contains the toggle, it disappears. Before Re-Template: Initial code : ...

Learn the method of setting the 'was-validated' class on a form in order to display validation feedback messages dynamically using Angular 5 following form submission

I have set up a template-based form in Angular that utilizes Bootstrap (v4) for styling. My goal is to display validation messages upon form submission. Here is an example of my form: <form [ngClass]="{'was-validated': wasValidated}"> & ...

Unable to display a mesh using THREE js

Could there be an issue with my implementation of THREE.Mesh? I'm attempting to generate a torus mesh in three.js using what I believe to be correct mathematical calculations. However, the result is only displaying a portion of the torus, and changing ...

How can I use Vue.js @scroll to create a dynamic CSS property?

I am developing a vuejs component for my project and I am looking to implement a zoom functionality on scroll within a div, similar to Google Maps. <div @scroll="zoomOnScroll"> <Plotly :data="info" :layout="layout" :display-mode-bar="false"&g ...

Instability detected in the image when hovering over and off

Here is a snippet of code from my HTML file: <img id="id1" src="photo1" usemap="#ir" > <img src="photo2" id="id2"/> <span> <map name="ir" id="ir"> <area alt="" title="my title" href="my link" shape="poly" coords="13,15,29 ...

A vertical line in Javascript extending upward from the base of an element

Is there a way to create a design where an infinite vertical line extends from the bottom of a circle (or in my case, a rectangle) without using css :after or pseudo-elements? I would like the line to be its own element and not limited by the restriction ...