Overlapping Columns in Bootstrap Before Reaching the Breakpoint

I am facing an issue where the column containing the select field overlaps the first column with the "heading" when collapsing the window before it hits the medium breakpoint. I have tried adjusting the settings but still can't figure out why this is happening. Any assistance would be greatly appreciated.

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="cdafa2a2b9beb9bfacbd8df9e3fbe3fd">[email protected]</a>/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">

<div class="row">
  <div class="col-md-1">
    <span class="h2">Leads</span>
  </div>
  <div class="col-md-3">
    <form>
      <input type="hidden" name="status" id="status" value="Today">
      <input type="hidden" name="tab" id="tab-status-agent" value="follow_up">
      <select name="user_id" id="select-agent" class="form-control" onchange="this.form.submit()">
        <option value="">All Team Members</option>
        <option value="unassigned">Unassigned</option>
        <option value="7">Luke Skywalker</option>
        <option value="2">Han Solo</option>
        <option value="1">Leia Organa</option>
      </select>
    </form>
  </div>
  <div class="col-md-5 text-right">
    <form data-remote="false" class="d-inline" id="power-dialer-form" action="/calls/power_dialer" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="✓"><input type="hidden" name="authenticity_token" value="vqtLpEeM2kh5MP7nZFhFrfrmJhjm6T3IF++8UGmHpHjZP4E9WSOpIsextGJptcRYPIuDBqVWgDkVYeHOn9uWow==">
      <button type="submit" name="commit" value="" class="btn btn-primary" id="add-to-power-dialer" disabled="">
      <i class="fas fa-phone" title="Add to power dialer"></i>
      </button>
    </form>
    <div class="btn-group" role="group" aria-label="Basic example">
      <a class="btn btn-primary" data-toggle="modal" data-target="#assign-leads" title="Assign leads" href="#">
      <span class="fas fa-user-check"></span>
      </a>    
      <a class="btn btn-primary" data-toggle="modal" data-target="#new-lead" title="New lead" href="#">
      <span class="fas fa-user-plus"></span>
      </a>    
      <a class="btn btn-primary" data-toggle="modal" data-target="#import-leads" title="Import leads" href="#">
      <span class="fas fa-file-import"></span>
      </a>  
    </div>
  </div>
  <div class="col-md-3">
    <div class="input-group search-bar">
      <div class="input-group-prepend">
        <div class="input-group-text" id="btnGroupAddon"><i class="fas fa-search"></i></div>
      </div>
      <input type="search" id="search" class="form-control">
    </div>
  </div>
</div>

I tried to adjust the settings as follows:

ROW: COL-2 COL-3 COL-4 COL-3

This resolved the overlap issue, however, it resulted in the select field being too far away from the heading.

Answer №1

Feel free to test out this code and see if it works as expected.

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a8cac7c7dcdbdcdac9d8e89c869e8698">[email protected]</a>/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<div class="row">
  <div class="col-md-4">
    <span class="h2">Leads</span>
    <form class="ml-3">
      <input type="hidden" name="status" id="status" value="Today">
      <input type="hidden" name="tab" id="tab-status-agent" value="follow_up">
      <select name="user_id" id="select-agent" class="form-control" 
       onchange="this.form.submit()">
        <option value="">All Team Members</option>
        <option value="unassigned">Unassigned</option>
        <option value="7">Luke Skywalker</option>
        <option value="2">Han Solo</option>
        <option value="1">Leia Organa</option>
      </select>
    </form>
  </div>
  <div class="col-md-5 text-right">
    <form data-remote="false" class="d-inline" id="power-dialer-form" action="/calls/power_dialer" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="✓"><input type="hidden" name="authenticity_token" value="vqtLpEeM2kh5MP7nZFhFrfrmJhjm6T3IF++8UGmHpHjZP4E9WSOpIsextGJptcRYPIuDBqVWgDkVYeHOn9uWow==">
      <button type="submit" name="commit" value="" class="btn btn-primary" id="add-to-power-dialer" disabled="">
      <i class="fas fa-phone" title="Add to power dialer"></i>
      </button>
    </form>
    <div class="btn-group" role="group" aria-label="Basic example">
      <a class="btn btn-primary" data-toggle="modal" data-target="#assign-leads" title="Assign leads" href="#">
      <span class="fas fa-user-check"></span>
      </a>    <a class="btn btn-primary" data-toggle="modal" data-target="#new-lead" title="New lead" href="#">
      <span class="fas fa-user-plus"></span>
      </a>    <a class="btn btn-primary" data-toggle="modal" data-target="#import-leads" title="Import leads" href="#">
      <span class="fas fa-file-import"></span>
      </a>  
    </div>
  </div>
  <div class="col-md-3">
    <div class="input-group search-bar">
      <div class="input-group-prepend">
        <div class="input-group-text" id="btnGroupAddon"><i class="fas fa-search"></i></div>
      </div>
      <input type="search" id="search" class="form-control">
    </div>
  </div>
</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

The input group becomes lodged under the navigation bar

I am having an issue where my Input group is getting stuck behind the navbar and I can't seem to figure out how to fix it. I have tried putting containers around both elements, but that doesn't seem to be working. If anyone has any suggestions or ...

What is the process for adding text before and after a Bootstrap progress bar?

I want to customize the bootstrap progress bar with text at the beginning and end, like this: 5 star ----------------------------------------------- 70% Here is my attempt to achieve this: <link rel="stylesheet" href="https ...

What could be causing my Java-Script website to not function properly on iPad/iPhone devices?

Starting out as a newbie in the realm of java-script/html/css, my inaugural project is this web quiz. I am currently working on it using eclipse on a mac. Thus far, the web quiz functions properly on safari, firefox, and chrome on my desktop computer. Init ...

When the div tag exceeds its boundaries, apply a new class

I am working on a div with set dimensions, and I am populating it with content using ng-repeat. My goal is to apply a CSS class to this div when it exceeds its limits. I attempted to use the length property but without success. var app = angular.module( ...

Navigating through a HTML email Listserv with a click event scrolling feature

I am looking to create an interactive HTML email with a link that can scroll the recipient's browser to a specific section within the email. I am considering using Javascript and jQuery for this functionality. Can someone guide me on how to implement ...

Despite the fact that it shouldn't, the loop continues to add the characters "!?.," repeatedly

My goal was to develop a straightforward function that converts a sentence into the NATO phonetic alphabet. While the loop successfully works with the alphabet, it is causing an issue with strange characters. Here's my code: const alphabet = ["Alfa ...

Tips on positioning only one list item on your Bootstrap navbar to the right

I am currently learning to code with HTML and am attempting to create a navigation bar with some list items on the right side and some on the left. Although I'm using Bootstrap, I am unable to figure out how to move only the 'contact' item t ...

How can I make an HTML button function with a JavaScript script?

When I click a button in an HTML file, it should trigger a function in a JavaScript file to display an alert that says "hey." However, this simple task is not working for me and I am unsure why. Java Script is enabled in my browser (Google Chrome) and I am ...

Is it possible to retrieve specific information from a website using the rvest package?

I've been attempting to extract and display the review rating of a song through web scraping using rvest in R from Pitchfork. The rating for this particular song is 8.5, but unfortunately, I am encountering an issue as shown below: https://i.sstatic.n ...

Utilizing Jquery and Ajax for fetching data to incorporate with Highcharts within an HTML framework

I am tasked with creating a graph that displays data over time using an ajax request, and I am seeking assistance on how to properly integrate the data with Highcharts. Below is the code snippet for reference: JSP FOR RETRIEVING DATA: <%@ page import ...

Is the middle part included?

What could be causing my "Section" to not align properly in the center? I believed that this CSS should have resolved it: section{ width: 80%; margin-left: auto; margin-right: auto; } However, it seems like something went wrong. Can you iden ...

Having trouble getting the CSS animation to work properly with the text

Update: The direct link is working fine, unlike the rocketscript version. <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> I have been attempting to animate word rotati ...

Revise the Bootstrap Mobile Menu feature so that it activates upon hover instead of click

I have been utilizing Bootstrap 3 to design a mobile view, and when working with a menu button in the mobile view, I noticed that it collapses and expands depending on the click of the menu button. However, now for the landing page, the client wants it to ...

Instant Pay Now Option for Your WordPress Website with PayFast Integration

I have encountered an interesting challenge that I would like some guidance on. My goal is to integrate a PayFast "Pay Now" button into a Wordpress.com blog, specifically within a sidebar text widget. The tricky part is that I need the customer to input th ...

Styling the dropdown list with CSS padding on all sides

There seems to be an issue with adding padding all around a p-dropdown within a p-table Here is the code snippet: <td> <p-dropdown name="country" [options]="countries" [(ngModel)]="applicant.country" placeholder= ...

Display a video within a designated grid section of Bootstrap 4

To create a simple grid structure, I utilized Bootstrap 4 version 4.4.1. The layout consists of two columns, each spanning 50% width. In the left column, there are two rows, both occupying 50% height. The challenge was to embed a video within the upper lef ...

Guide to using jQuery to dynamically transfer text from a textbox to a label within a div

I am working with a ViewBag in my code <div id="amount"><h4>@ViewBag.Amount</h4></div> What is the best way to update the amount using jQuery? I have an input field for the new amount <input type="text" class="form-control" id ...

Mixing percentage width with a fixed minimum width in CSS results in divs failing to align in a single line

Having an issue with the responsiveness of a website layout that includes three columns (let's say 'A', 'B', and 'C') each 96% high, along with a footer. Columns A and C have a width of 35%, while column B is set to be 30 ...

A guide on implementing Mail Merge Template files in PHP

I am new to mail merge and I'm not sure if it's even possible. I have created a template in mail merge, but I don't know how to use PHP to send emails to a list of clients like an RSS feed. Can someone confirm if this is feasible and provide ...

Dragging an image within a div using JQueryUI

Something strange is happening with my code. I am utilizing JQueryUI to enable dragging of div elements that contain an image tag. The issue arises when I start dragging the div - the image, which was perfectly centered within the div while stationary, now ...