Issue with IE 11 causing trouble with Bootstrap 4 nav-justified functionality

Is anyone else experiencing issues with IE 11? I am having trouble with the following code in IE 11:

https://i.sstatic.net/PPIAi.jpg

This code works perfectly in Firefox:

https://i.sstatic.net/wjbXx.jpg

Even though Bootstrap claims to support IE 10 and IE 11, I suspect there may be problems with my custom CSS code.

Below is the source code for the CSS and HTML (Razor):

.wizard-step p {
  margin-top: 10px;
}

.wizard-step button[disabled] {
  color: gray;
}

... (CSS code continues) ...

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" />

... (HTML code continues) ...

If anyone has any solutions or suggestions, please let me know! Thank you!

Answer №1

It seems like the issue lies within my customized CSS code.

Indeed, that is correct. I've taken the liberty to modify your custom CSS by commenting out certain parts and integrating native Bootstrap classes instead (refer to the comments in the code below).

Now, everything appears correctly on my IE11 browser.

Lesson learned: Utilize native Bootstrap classes whenever possible and reserve custom CSS for elements that cannot be managed with Bootstrap.

Check out the revised code snippet:

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">

<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
    
<style>
    .wizard-step p {
/*        margin-top: 10px;*/
/*        replaced with `mt-2` */
    }

    .wizard-step button[disabled] {
        color: gray;
    }

    .wizard-row:before {
/*
        top: 14px;
        bottom: 0;
        position: absolute;
        content: " ";
        width: 100%;
        height: 1px;
        background-color: #ccc;
*/
    }

    .btn-circle {
        width: 30px;
        height: 30px;
/*        text-align: center;*/
        padding: 6px 0;
        font-size: 12px;
        line-height: 1.428571429;
        border-radius: 16px;
    }

    .wizard-step {
/*        display: table-cell;*/
/*        text-align: center;*/
        position: relative;
    }

    .nav-link {
/*        margin: auto*/
/*        replaced with `mx-auto` */
    }

    .progress {
        background-color: #d3d3d3;
        height: 7px;
        width: 80%;
        margin: 0 auto;
        position: relative;
        top: 18.5px;
    }

    .progress-bar {
        background-color: orange;
    }
</style>

<div id="formWizard" class="wizard mt-4">
    <div class="progress">
        <div class="progress-bar" role="progressbar"></div>
    </div>
    <ul class="nav justify-content-center nav-justified">
        <li class="nav-item wizard-step">
            <a id="tab_start" class="nav-link mx-auto active btn btn-primary btn-circle" href="#tabs-1" data-toggle="tab" role="tab" aria-controls="step1" title="Step 1">1</a>
            <p class="d-none d-sm-block mt-2">Start report</p>
        </li>
        <li class="nav-item wizard-step">
            <a id="tab_report" class="nav-link mx-auto disabled btn btn-primary btn-circle" href="#tabs-2" data-toggle="tab" role="tab" aria-controls="step2" title="Step 2">2</a>
            <p class="d-none d-sm-block mt-2">Report payroll</p>
        </li>
        <li class="nav-item wizard-step">
            <a id="tab_review" class="nav-link mx-auto disabled btn btn-primary btn-circle" href="#tabs-3" data-toggle="tab" role="tab" aria-controls="step3" title="Step 3">3</a>
            <p class="d-none d-sm-block mt-2">Review and submit</p>
        </li>
        <li class="nav-item wizard-step">
            <a id="tab_confirm" class="nav-link mx-auto disabled btn btn-primary btn-circle" href="#tabs-4" data-toggle="tab" role="tab" aria-controls="step4" title="Step 4">4</a>
            <p class="d-none d-sm-block mt-2">Print confirmation</p>
        </li>
        <li class="nav-item wizard-step">
            <a id="tab_pay" class="nav-link mx-auto disabled btn btn-primary btn-circle" href="#tabs-5" data-toggle="tab" role="tab" aria-controls="step5" title="Step 5">5</a>
            <p class="d-none d-sm-block mt-2">View balance or pay</p>
        </li>
    </ul>
</div>

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

Arranging Bootstrap 4 rows and columns in a vertical stack rather than horizontally

For some reason, I can't seem to get my .temp and .city divs to display side by side - they just keep stacking vertically. I've messed around with the column sizes but nothing seems to work. Any suggestions? <div class="col-lg" id ...

Despite all my efforts, the MySQL table continues to display persistent little black question marks

In my MySQL table, there is a paragraph that I copied and pasted which is displaying with a black background and question marks instead of Apostrophes or single & double quotes. Despite having utf-8 in the meta tag, using str_replace to replace quote mar ...

Using the combination of Spring Boot and Thymeleaf, implement server-side validation within a modal form

Currently, I am delving into spring boot and thymeleaf, and one thing that confuses me is how to perform validation within a modal form without redirecting. My Class Model public class Class { @Id @GeneratedValue(strategy = GenerationType.IDENT ...

The ng-show and ng-hide directives are not working as expected, and there are no error

I'm currently working on a Todo App using AngularJS 1.x (version 1.6), but I'm having issues with ng-show and ng-hide functionality. The aim is to have a text box appear in the todo section when the edit button is clicked to modify existing todos ...

Detect with JavaScript to determine if the angular-sanitize.min.js file has been successfully fetched from the content delivery

Is there a way to determine if angular.min.js has been loaded from a CDN or locally? if(!window.angular){ //download it from another source } Assuming that the first file, angular.modified.min.js, is always loaded locally, how can we verify if the second ...

Retrieving Form Validation Error Value in AngularJS

Incorporating AngularJS 1.2 RC2 and utilizing Bootstrap for CSS, I have constructed a straightforward form as shown below: <form class="form-horizontal" name="form" novalidate> <label class="col-lg-2 control-label" for="name">Name</labe ...

break-word property not functioning correctly within pre tag

Each row in my dataTable triggers a modal to appear: <div id="verifyModal" class="modal"> <div class="modal-content"> <h2>Verify # <span id="verify-modal-id"></span></h2> <pre><code class="" id="verif ...

Modify the style of .asp files (CSS)

I need to change the orientation of an .html page using a .css file, but I only have access to the .aspx file and not its code. The challenge is that the .css file is loaded dynamically from an .axd file. How can I go about changing the .css file in this ...

Updating the information displayed in one section by selecting a button on the Google Maps infowindow located in a separate section

My webpage is divided into multiple divisions. One division contains a map using the Google Maps API with markers. When I click on a marker, an info window opens up. Now, I am attempting to place a button inside that info window which, when clicked, will ...

The arrangement of bootstrap elements varies based on whether they are displayed in one or two columns

I'm facing a challenge with my webpage layout that displays two columns of cards. When the screen width is smaller than md size, I want the most important items to be positioned higher on the page. To achieve this, I have arranged the items alphabetic ...

I prefer children to have their own unique style, instead of inheriting their parent's CSS

I currently have a project structured in the following way: There is an index page with a full layout Separate PHP files that are included in the index page Bootstrap is used in the index page, however, in some of the separate PHP files I also use jqgri ...

The browser does not support the display of Spanish special characters

I am working on a website and need to incorporate support for the Spanish language. I have prepared an XML file with both English and Spanish text. The XML file is being read based on the user's selection of language from a dropdown menu. Everything s ...

Display a div upon loading with the help of Jquery

Two divs are causing me trouble! <div id="loader"> </div> and <div id="wrapper"> </div> "The wrapper div is not located inside the loader div just to clarify." This is my code: $(window).bind("load",function() { $(&apos ...

What is the solution for fixing scrolling while keeping the header fixed and ensuring that the widths of headers and cells are equal?

Is there a way to set a minimum width for headers in a table and provide a scroll option if the total width exceeds 100% of the table width? Additionally, how can we ensure that the width of the header and td elements are equal? Below is the HTML code: ht ...

Exploring the Contrast of Two JavaScript Source Codes

I am attempting to compare two image src paths in this code, but it seems to not be working. I suspect the issue lies in the fact that the paths are not absolute. How can I convert these image paths to absolute paths? HTML <td><img id='1 ...

Edit HTML easily with the help of AJAX and PHP to make your live coding

I need some assistance with creating a basic website where I can dynamically edit a number and have it update in the HTML file using PHP and AJAX. Currently, I am facing issues with getting PHP and DOMXpath to function properly. Here is the structure of ...

Enhancing the functionality of CSS frameworks using CSS modules

Currently, I am working on a React project where I need to customize CSS classes from frameworks like bootstrap. An example is when I want to modify the background color of a specific class (https://github.com/ColorlibHQ/AdminLTE/blob/v2.4.18/dist/css/Admi ...

What is the best way to align a checkbox and text in the same row within a Mailchimp embedded form?

I am troubleshooting a styling issue with my Mailchimp form that has groups. The problem I'm encountering is that the checkboxes are displaying on one line while the text appears on the next line in an unordered list format. To see the issue for yours ...

Steps to open a URL link within a div without navigating away from the current page

I want to create an interactive icon that, when clicked, expands like a browser window. Inside this expanded div, I would like to display a URL that I provide. How can I accomplish loading a new URL within my original index.html without leaving the page or ...

What is the best way to retrieve text content along with images from an element using jQuery?

Is there a way to retrieve the combined text contents of each element in the matched set, while still including any images present? Consider the following input: <div id="test">Lorem ipsum <strong>dolor</strong> sit amet, consectetur &l ...