In Internet Explorer, the Jquery Datatable within a Bootstrap d-flex container is exceeding its parent's boundaries

When using the d-flex class, Datatable renders outside or overflows from the parent element specifically in Internet Explorer.

<div class="d-flex justify-content-center">
    <div class="card">
        <div class="card-header">HEADER</div>
        <div class="card-block">
          JQUERY DATATABLE
        </div>
    </div>
</div>

To see this issue in action, check out the JSFiddle link provided: https://jsfiddle.net/q9L2L6dz/

Answer №1

There has been a reported issue that you can view here.

To address the issue, one solution is to assign a fixed width to your row. Adjust this line:

<div class="row" style="padding-top:5px; padding-bottom:15px;">

to:

<div class="row" style="padding-top:5px; padding-bottom:15px;width: 900px;">

Remember to utilize media queries instead of relying on a static value like 900px.

You can check out your updated fiddle

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

Tips for displaying a removal option and eliminating an uploaded document

I need assistance in implementing file uploading using dropzone.js. I am struggling to find a solution on how to delete uploaded files. Here is the code snippet: index.php <div class="container"> <div class="file_upload"> <form action= ...

Checkbox-enabled treeview using Knockout JS

In my knockout application, I am working on a module that requires a tree-like structure with checkboxes. The goal is to achieve the following functionalities: When a child is selected, all parent and grandparent nodes in that branch should also be autom ...

What is the best way to retrieve chosen "CheckBoxes" from a tree view with JavaScript?

I am currently working with the asp TreeView control and I am interested in obtaining the selected values of "checkboxes" on the client side. Is there a way for me to retrieve the selected values from the TreeView? ...

How can we consistently center a window using a grid layout while keeping the elements off-center?

I'm trying to achieve a grid container that always stays centered while the elements with fixed width float left, even when breaking. In my example, the alignment is off and not centered. Can this be fixed with CSS only or do I need to use JavaScript? ...

Unable to delete the margin of Material-ui TextField

Having trouble removing the padding around material-ui's TextField component when using styled-components and inline styling. Any solutions to this issue? Interestingly, the inline width property is functioning correctly, unlike the styled-component w ...

"When the screen resolution changes, the absolute positioning of images won't function as expected

I am trying to overlay one image on top of another background image, but I am facing an issue. When I change the screen resolution, the position of the image that should be placed over the background image also changes. Below is the code I am using: ...

The height of the content in the polymer core-scaffold cannot be set to 100%

I am working with a polymer element that I have defined. The main objective is to make the conversation_container element have a height of 100% so that the message_box_container can be positioned at the bottom of the entire panel using position: absolute; ...

Is it possible for a MySQL loop to only delete the first entry?

My MySQL looping is not working properly when I click the second button to get their id and continue with the rest of the process. Why is this happening? $(document).ready(function() { $("#deleteSchedule").click(function (e) { e.preventDefault(); ...

How can I detect when an image is loaded in a specific container division using jQuery?

I have a container with multiple images inside, and I would like to capture an event each time an image finishes loading. For example: <div id="container"> <img src="..." /> <img src="..." /> <img src="..." /> ...

Exploring the possibilities of altering CSS attributes using a button in AngularJS

Is there a way to dynamically change the background image of a website with the click of a button? I'm looking to update the background image attribute in the body tag using CSS and AngularJS. CSS: body { background-color: #00471c; background-im ...

CSS shimmer effect does not smoothly transition between borders

Currently, I'm diving into a tutorial on YouTube that teaches how to craft a CSS Glowing Border Animation After putting in the effort to replicate the animation, I noticed a glitch that's been bothering me. It seems like there's an abrupt s ...

Steps to turn off a Material UI CSS class for an element universally

Utilizing the Material UI Typography element with the css class MuiTypography-h1, I am seeking to globally disable its usage throughout the entire codebase. <Typography variant="h1" sx={{ width: '100px', height: '55px ...

HTML5 enables users to pick their preferred font style

In my JavaScript and HTML5 course, I am working on developing a website where users can choose the background color and decide between using SANS SERIF or SANS fonts. The background color selection feature is already functioning successfully -- var inputC ...

Crafty Checkbox Selector [ leveraging jquery ]

I have created some fake checkboxes using elements like <span> after the real checkbox and they are working fine! However, I am having trouble counting the checked checkboxes when a checkbox is clicked. I have tried using methods like: $(".elm:chec ...

What is the best way to make the buttons on my website shift downwards?

I'm currently working on making my website mobile-friendly. I've managed to stack the buttons on top of each other when the width reaches 700, but now I'm struggling to make them move down the screen. Some resources suggest using absolute po ...

Send data to webpage via AJAX and display the output in a designated div

As I work on the development of a one-page website, my goal is to dynamically load a slider with project images whenever a project is selected from a list. Unfortunately, I have been facing difficulties in passing the value through various methods, as the ...

Displaying identical information in a bootstrap dropdown menu

I am working on implementing a navigation bar with Bootstrap dropdown functionality. Each button in the navbar has the same content displayed in the dropdown menu, such as the "Exercises" button showing assignments and the "Assignments" button also displ ...

The issue with Mvc Modal popup is that it functions correctly with jQuery 1.5.1.js, however, it is loading multiple times with just one click. Unfortunately, it is not compatible with the

<script type="text/javascript"> $.ajaxSetup({ cache: false }); $(document).ready(function () { $(".openPopup").live("click", function (e) { e.preventDefault(); debugger; $("<div></div> ...

Embedding Views in a <td> tag with DataTables and Ember.js

Has anyone ever attempted to incorporate a view within a using data tables? Currently, I am loading the data and dataTables through didInsertElement. Within each record, I am adding an "edit" and "delete" button inside a td so users can click to edit or d ...

The issue with the display grid position being set to absolute is causing functionality

Struggling to create an image catalog with cards containing text while using position absolute on the text and position relative on the card. Unfortunately, it's not working as expected. /*catalog style*/ .grid-container{ padding: clamp(5px,10vw,2 ...