Instability of Background in Bootstrap V4 Modal Effect

enter image description hereModal opening with a form URL bar. When the user clicks on a bar, the Modal opens with the URL bar and the name of the website. The problem arises when the modal opens and the user moves the cursor over the opening bar, the background bar turns white or becomes distorted.

Here is the Bootstrap code that I tried:

<div class="container-fluid">

   <!-- Form trigger modal -->
<form action="testiing bars.php" method="get" data-toggle="modal" data-target="#formModal">
    <div class="form-group">
    <label for="inputlg"></label>
    <input class="form-control input-lg" id="inputlg" type="text" name="website">
  </div>
</form>

<!-- Modal -->
<div class="modal fade" id="formModal" tabindex="-1" role="dialog" aria-labelledby="formModal" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLongTitle">Submit URL</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        ...
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
      </div>
    </div>
  </div>
</div>

Does anyone have any ideas on how to solve this issue?

Answer №1

This code snippet is great for enhancing user experience by adding background scroll to popups. Give it a try:

/*enable scrolling behind modals*/
html { overflow-y: scroll !important; }
body .modal-open { overflow: visible; }

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

CSS loop to centrally align divs

I am facing an issue where I want to center the divs in a panel. Each div is generated within a for-each-loop inside the panel. However, the problem arises when they are displayed as block elements: https://i.sstatic.net/RvnlX.jpg When I try floating them ...

Is there a way for me to utilize a single set of checkboxes for submitting multiple times in order to generate multiple selections simultaneously?

I'm exploring the idea of using checkboxes that can be dynamically updated and posted to a PHP page multiple times. The goal is to send different sets of selections from the same checkboxes to the PHP page, with each set being treated as data for furt ...

Tips on securing ajax post values against browser inspection techniques

function updateR() { $.ajax({ type: "POST", url: "update.php", data: { surprize: '12345678910', dpoint: point, dlevel: level } }).done(function( msg ) { // alert( "Data Saved: " + msg ); }); ...

Issue with Angular: RouterLinkActive fails to work properly with formControlName

I am currently working on a vertical navigation bar that allows the user to navigate to different components. However, I am facing an issue where when I click on a list item, it's supposed to be active but I have to click on it to navigate to the comp ...

Elevate the placeholder in Angular Material 2 to enhance its height

I want to make material 2 input control larger by adjusting the height property of the input using CSS <input mdInput placeholder="Favorite food" class="search-grid-input"> .search-grid-input { height:30px!important; } As a result, the image o ...

Adjusting image size as you scroll

Hello everyone, I am currently working on coding a website logo that decreases in size as the user scrolls down, similar to the effect seen on this website: . I am relatively new to HTML and was wondering if there are any specific commands or techniques th ...

How can I correct the changing order of buttons when floating to the right?

When I align a few buttons to the right, the order of those buttons changes. I have included an image for reference. View Navbar Image This is the code I am currently using: .btn{ float: left; padding: 1.7em; text-align: center; display ...

Is it possible to trigger AJAX using an element's ID without any event listener?

If I have the following code: if(cond1Satisfied){ <div id="checkA"> </div>} if(cond2Satisfied){ <div id="checkB"> </div>} Can I make an AJAX call like this? $.ajax({ url: 'example.php', type: & ...

Get rid of irritating photo borders

It's a mystery to me why no one seems to have the answer to this question. Take a look at . The spacer images are surrounded by borders. While I could use empty divs instead of spacer images, I'm using them here to make a point. This issue also ...

Swinging text using Javascript/JQuery on the edges of a container

I am looking to create a bouncing text effect within a specific div element (#header). The text successfully bounces off the right side, then reverses and hits the left side. However, the issue arises when it reaches the left side and begins moving right a ...

Enhancing the appearance of standard HTML checkboxes

This HTML snippet displays a pair of checkboxes positioned side by side <div id="mr_mrs"> <ul class="mr_mrs form-no-clear"> <li id="mr" class="popular-category"> <label for="Mr" id="mr">Mr</label> ...

JQuery not functioning properly within a dynamically loaded AJAX section

After loading some pages with Ajaxtabs, I encountered an issue where jQuery and Owl Carousel were not functioning properly. The classes and styles from Owl Carousel were not being applied to the divs after loading parts of the page. Here is an example of ...

Disable the checkbox functionality in Angular

Is there a way to disable clicking on a checkbox while still keeping an ng-click function attached? <input id="record-2" type="checkbox" class="checkbox" ng-click="doIfChecked()"> I've tried using ng-readonly and ng-disabled, as well as css p ...

The array is giving back null values

When making a POST request with AJAX and sending data in JSON format, everything seems to be working fine until trying to print out a specific index value from the decoded array, which returns null. What could be causing this issue? Here's the AJAX re ...

When used, the jQuery selector returns the PreviousObject rather than the object that was selected initially

I'm currently attempting to add a second menu to my website alongside the top menu. I have multiple menus set up in two bootstrap columns (col-8 and col-4). Initially, when I used jQuery selectors outside of a function, everything worked smoothly. How ...

Script for Grunt build that analyzes an XML document to identify the files that need to be duplicated

copy: { build: { cwd: 'app', src: ['**', '!**/vendors/**', '!**src/js/*.js',], dest: 'dist', expand: true } } When utilizing Grunt build scripts to create a distribution folder for the ...

Picking out specific SharePoint components using jQuery

I encountered an issue with making my two radio boxes readonly. To resolve this, I attempted to disable the unchecked option. Despite trying to access the elements using jQuery and reviewing the data from the console, the solution did not work as expected. ...

Unleashing the power of jQuery: A guide to sequentially queueing multiple asynchronous

My software sends out multiple asynchronous AJAX calls to a server with limited threads. I need to modify these calls to be sequential instead of simultaneous. Is there a built-in feature in jQuery that can help with this? Any suggestions? Code: function ...

What is the best way to retrieve an item from an object?

Consider the following scenario: const myUl = $("<ul>"); $("<li>").appendTo(my_ul); $("<li>").appendTo(my_ul); $("<li>").appendTo(my_ul); $("<li>").appendTo(my_ul); How can we access the last li element in the ul? ...

Dimensions of images in Bootstrap carousel

Hey there! I'm having an issue with the responsiveness of a carousel on my website. The problem is that I have 7 horizontal images (1800x1200) in the carousel, but the last one is vertical and I can't seem to code it properly to make it responsiv ...