Bootstrap theme functioning properly, but its appearance has undergone some changes

https://i.sstatic.net/FqwJf.png

<button type="button" class="btn btn-info">Info</button>
This code snippet is from getBootstrap.com

https://i.sstatic.net/WzcIL.png

<a id="manage" class="btn btn-info" style="margin:2px;" asp-area="Identity" asp-page="/Account/Manage/Index" title="Manage">@UserManager.GetUserName(User)!</a>
I encountered this in my web app.

Greetings, I seem to be facing an issue here with the button styling using Bootstrap, specifically when using the btn-info class resulting in different outputs as shown above.

Interestingly, everything was working perfectly just a week ago. Upon revisiting my project today, I noticed a slight change in the button color.

I tried going back through previous revisions, but the button color remained consistent, appearing slightly brighter than before.

I tested the application on both Chrome and Edge browsers, yet there was no noticeable difference.

Has anyone encountered a similar experience before?

====================
(Update1 09 Jul 2021)

    <link rel="stylesheet" type="text/css" href="~/css/site.css" />
    <link rel="stylesheet" type="text/css" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="~/lib/datatables/DataTables-1.10.25/css/dataTables.bootstrap5.min.css" />

    <script src="~/js/site.js" asp-append-version="true"></script>
    <script type="text/javascript" src="~/lib/jquery/dist/jquery.min.js"></script>
    <script type="text/javascript" src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
    <script type="text/javascript" src="~/lib/datatables/DataTables-1.10.25/js/jquery.dataTables.min.js"></script>
    <script type="text/javascript" src="~/lib/datatables/DataTables-1.10.25/js/dataTables.bootstrap5.min.js"></script>

The Bootstrap version utilized is downloaded, and the script code above reflects this setup.

<button class="btn btn-outline-primary btn-sm" style="margin:3px;" data-toggle="collapse" data-target="#row_op" onclick="c => this.Collapsed = !this.Collapsed">
            Detail Expand/Collapse
        </button>

        <div id="row_op" class="collapse">
            <div class="row">

During troubleshooting yesterday, I determined that the unusual color may indicate an underlying issue with functionality. The use of data-target and collapse poses challenges currently.

What perplexes me is that even after completely removing the current version of the project and reverting to one from a month ago (five revisions prior), the abnormal color persisted along with non-functional collapsing elements.

This peculiar behavior initially suggested a browser-related complication, which prompted immediate testing on both Chrome and Edge browsers.

====================
(Update2 09 Jul 2021)

Recalling a published copy residing on my laptop for server analysis, launching it revealed nothing amiss – the colors, spacing, and collapsible features exhibited normalcy.
Subsequently transferring the entire folder to my desktop exposed ongoing Bootstrap discrepancies. Notably, both computers ran Chrome version 91.0.4472.124 indistinguishable from each other.
This confirms that the code is not faulty, unveiling further mystery as the site produces divergent outcomes on distinct devices without apparent reason.

Answer №1

After changing the test launch option from IIS express to my app in Visual Studio 2019 community, everything started working smoothly once again. It seems that the specific testing tools and environment can greatly impact the outcome of the development process.
In my opinion, it's important to have control over the user environment for accurate testing results. However, I don't believe there are any significant changes that can be made during the development phase.

Answer №2

The second image displaying a button with a blue background and black text follows the official design guidelines of Bootstrap for info buttons. If you are experiencing visual distortion on the Bootstrap main page, it could be due to a third-party extension interfering with the layout. To troubleshoot this, try viewing the page in incognito mode without any extensions enabled.

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

Incorporating server-side HTML content into a div using Angular 2

I have a series of HTML files stored on my server. Examples include: Now, I am attempting to include these files into a <div> in my Angular 2 v4 app. For instance: component.ts public changePage(name: string) { switch (name) { case 'int ...

AngularJS - enable user authentication to access exclusive content on the webpage without redirecting to a new page

I'm struggling with implementing a login form on my AngularJS site... My goal is to dynamically load a login form onto any page of the site without needing to navigate away, then asynchronously handle user login information and display a success or f ...

Updating class with jQuery based on dynamically changing content

I am using countdown.js to create a custom countdown timer. My goal is to replicate the countdown timer seen on the homepage, but with the ability to change the target date (which I have already accomplished). Here is an example of what I currently have f ...

Fixed columns with horizontal scrolling to prevent Datatables columns from overlapping

I'm facing an issue with my data table created using datatables. I need to fix the first two columns, but when I do so, the other two columns overlap them while scrolling horizontally. If I remove the fixed columns, the scrolling works correctly witho ...

Having trouble with the border in Tailwind CSS after integrating Flowbite?

Inside this div is where my component is wrapped: <div className="bg-gray-800 border border-gray-700 rounded-lg"> .... </div> When I installed Flowbite, the border color didn't show up as expected. Check out the borde ...

PHP scripts for performing multiplication and subtraction operations

My goal is to create a PHP script that can determine the total miles driven by a car rental customer (at a rate of 0.12 cents per mile), calculate the cost based on the number of days they rented the car ($15 per day), and display the grand total in a text ...

Is there a way for me to determine if the HTML code is creating a new line?

Here is my code snippet: <div id="box"> <p> 123 </p> <p> abc </p> </div> <script> var html = document.getElementById("box").innerHTML; for (var i = 0, len = html.length; i & ...

The combination of jQuery, using .load method in javascript to prevent scrolling up, making XMLHttpRequest requests, updating .innerHTML elements, and troubleshooting CSS/JS

While utilizing this code, CSS and Javascript are disabled (only HTML loads): function loadContent(limit) { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (xhttp.readyState == 4 && xhttp.status ...

I'm having trouble getting my CSS and HTML to connect properly, and I'm not sure what the issue is

Hi there, I'm having some trouble with my HTML code. I haven't even started building my website because I can't seem to connect it to the CSS file, and I have no idea why. I'm using Aptana Studio 3 by the way. <head> <titl ...

What is causing the issue with the "Inline-block" property in this CSS code?

Please review the CSS code provided below for styling instructions. /*rex is the container of ex,ex2,ex3*/ div.rex{ height:200px; border:0px; margin:60px auto; padding: 0; vertical-align:top; } div.ex{ width:34%; height:200px; background-color:#4f443a; ...

Display HTML content using JavaScript only when a checkbox is selected

Currently, I am updating an HTML form to show additional subsets of questions based on the selection of a "parent" checkbox. The current implementation works well, but I am wondering if there is a more efficient way to achieve this without having to rewrit ...

What is the process for implementing the tooltip plugin within a modal dialog in Twitter Bootstrap?

Hello there, I am currently using the latest version of Bootstrap, v2.1.1. I am trying to implement a tooltip in my modal dialog. <!DOCTYPE html> <html lang="zh-CN"> <head> <title>Bootstrap v2.1.1</title> <meta htt ...

When there are spaces in the button, it will result in the button creating a new line within the Navbar

There is a line break in the navbar when a space is added to the button text The CSS for the Navbar is manually inputted (Utilizes Bootstrap) <img src="images/SCP_Logo.jpg" style='width: 100%; max-width:100%;'> & ...

Guide to organizing the sequence of text in HTML and CSS

Seeking guidance on reordering text and adjusting spacing on my website. Below, I have attached an image where I intend to change the sequence of text and modify the spacing accordingly. I aim to switch the order from "Resume About Work" to "Work About Re ...

Navigating Dynamically between tabs - A How-to Guide

I am working on a mat-tab Angular app where I need to dynamically generate links and transfer them to a navLinks object. Despite ensuring that the concatenation is correct, it seems like my approach is not working as expected. Here's a glimpse of what ...

How to create vertical spacing between <a> elements within the same div using HTML and CSS

Currently, the layout in picture 1 shows how my content is displayed. I am looking to create spacing (bottom margin?) between the images like the example in picture 2. The two side-by-side blocks are separate DIVs, and the images within each line belong to ...

How can I generate a bounding box with CSS?

I am a newcomer to vue.js and I have a question about creating a bounding box for any element. This bounding box resembles a view box in svg. For example, I have created a checkbox like this one: checkbox Below is the code to style the checkbox: /* checkb ...

What impact do varying screen sizes have on the width of CSS?

Can someone explain what this CSS code actually does: .class { width: 800px; } I've noticed that on my laptop screen, the element appears to be exactly 800 pixels wide. However, when I view it on my tablet screen, it shows up as 1600 pixels wide. Th ...

Insert a variety of images onto the page at the exact position where the user has

Looking to create a script that selects a random image from an array and displays it at the current mouse position. Additionally, you can click elsewhere to add a new image, allowing you to cover the entire page with random cat images if desired. docum ...

Unclear about how inheritance works with the general sibling combinator "~" (tilde)?

When attempting to color list items in an unordered list using the general sibling combinator, nothing seems to happen: http://jsfiddle.net/bkbehpv0/ p { color: blue } h1 ~ li { color: red; } <h1> Title of site </h1> <p> Text in t ...