Creating columns in Bootstrap 4 with equal height content

Why is the height of each individual p tag within each column dictated by the length of the string of text and not by the column height, even though bootstrap 4 comes pre-loaded with equal height columns? I just want each client bubble to appear uniform with the rest on the list. Any help would be amazing. Screenshots of the site and relevant code snippets are included.

list of clients with unequal heights

.clients {
  width: 80%;
  margin: auto;
}

.cli {
  padding-top: 20px;
  font-size: .9em;
  background-color: rgb(255, 255, 255, .6);
  padding: 38px;
  cursor: pointer;
  display: block;
  border-radius: 5px 5px 5px 5px;
  box-shadow: 0px 5px 20px #848888;
}
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet"/>

<div class="clients">
  <div class="row">
    <div class="col-sm-12 col-xl-4">
      <p class="cli m-4">Towson University Art Education Department</p>
    </div>
    <div class="col-sm-12 col-xl-4">
      <p class="cli m-4">Baltimore City Public Schools’ New Teacher Summer Institute</p>
    </div>
    <div class="col-sm-12 col-xl-4">
      <p class="cli m-4">Johns Hopkins University School of Education</p>
    </div>
  </div>
  <div class="row">
    <div class="col-sm-12 col-xl-4 ">
      <p class="cli m-4">SOURCE at Johns Hopkins University</p>
    </div>
    <div class="col-sm-12 col-xl-4">
      <p class="cli m-4">The Federal Judiciary Center</p>
    </div>
    <div class="col-sm-12 col-xl-4">
      <p class="cli m-4">Waverly Elementary/Middle School</p>
    </div>
  </div>
  <div class="row">
    <div class="col-sm-12 col-xl-4">
      <p class="cli m-4">Baltimore Southwest Partnership</p>
    </div>
    <div class="col-sm-12 col-xl-4">
      <p class="cli m-4">The Gallery Church Baltimore</p>
    </div>
    <div class="col-sm-12 col-xl-4">
      <p class="cli m-4">Urban Teachers Baltimore</p>
    </div>
  </div>
  <div class="row">
    <div class="col-sm-12 col-xl-4">
      <p class="cli m-4">Baltimore Curriculum Project</p>
    </div>
    <div class="col-sm-12 col-xl-4">
      <p class="cli m-4">Baltimore Collegetown Network</p>
    </div>
    <div class="col-sm-12 col-xl-4">
      <p class="cli m-4">The Foundry Church Baltimore</p>
    </div>
  </div>
  <div class="row">
    <div class="col-sm-12 col-lg-6">
      <p class="cli m-4">Clemson University Fellowship of Christian Athletes</p>
    </div>
    <div class="col-sm-12 col-lg-6">
      <p class="cli m-4">Johns Hopkins Hospital Lifeline Critical Care Transport Team</p>
    </div>
  </div>
  <br><br><br><br><br>

</div>
</div>
</div>

Answer â„–1

To simplify your layout, consider using flexbox on the .columns class. You can then set the .content class to expand using flex properties:

.columns {
  display: flex;
}

and

.content {
  flex: 1;
}

Check out this live demo: https://example.com

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

Update the jQuery script tag with new content - rewrite everything

I am facing an issue with jquery. I need to change the link to src only when "document.write" is present. Below is my code: myscript.js document.write("TEST ABCD"); test.html <html> <body> <button id="example">click me</button&g ...

JavaScript: Activate the element with the first class of its children

This code is a visual representation of what I'm trying to accomplish... <style> .red{background:red} .blue{background:blue} </style> <div id=test> <button>1</button> <button>2</button> </div> ...

A clock for counting down on statically produced websites

It seems that I have encountered a limitation of statically generated sites. Currently, I am utilizing Gatsby to generate pages in a static manner. The process involves: Pulling data from the CMS where we set an end time for a countdown timer, such as two ...

Refresh the CSS without having to reload the entire page

I am working on a web page that operates on a 60-second timer. The code snippet below is responsible for updating the content: protected void RefreshButton_Click(object sender, EventArgs e) { ReportRepeater.DataBind(); ReportUpdatePane ...

What are some strategies for disregarding the effects of the !important rule

After incorporating some HTML and CSS styling into a third-party site, I encountered an issue where their styling was conflicting with mine, specifically due to certain !important declarations. I want to avoid this conflict without resorting to using !impo ...

Combining HTML, CSS, JAVASCRIPT, and PHP for a seamless web development experience

As a beginner in web development, I have some knowledge of javascript, html, css and am currently delving into php. However, I am struggling to find comprehensive resources that show how to integrate all these languages together. I would greatly appreciat ...

Tips for transferring simple CSS formatting to an independent stylesheet

As part of a university project, I am working on a basic website. Initially, I used in-line styling for the website design. However, the subject coordinator has now changed the requirements and we are only allowed to use an external CSS stylesheet. Most of ...

I would like to add an underline below the title

.thumb-text { position: absolute; width: fit-content; left: 50%; transform: translateX(-50%); } .thumb-text h3 { font-family: Georgia; font-size: 30px; color: black; font-weight: 900; } .thumb-text h3::after { content: ''; p ...

What is the best way to implement the Active list element feature in my menu bar?

The current list element is : <li class="nav__item"><a class="nav__link nav__link--active " href="#"... The standard list element is: <li class="nav__item"><a class="nav__link " href=&quo ...

How can you reset the chosen option in a Vue.js dropdown menu?

Within my dropdown menu, I have included a button that is intended to clear the selected city. Despite adding an event, the selected option is not being cleared. Can anyone provide insights on what I might be missing? Thank you in advance. Below is the bu ...

Dimensions of CSS Buttons

On my screen, I have 3 buttons with varying sizes determined by their padding. As the text wraps within each button, they adjust in height accordingly. However, the issue arises when the buttons end up being different heights. Instead of setting a specific ...

Exploring Vue's data binding with both familiar and mysterious input values

How can I model an object in Vue that contains both known and unknown values? The quantity is unknown, but the type is known. I need to present user inputs for each type, where the user enters the quantity. How should I approach this? data() { retur ...

Customizing the scrollbar within a modal using reactjs-popup

I am currently working on a CustomPopup functional component that includes a reactjs-popup: function CustomPopup({setFalse, item}){return(<Popup open={true} onClose={() => {setFalse(false)}} modal closeOnDocumentClick nested> {item === "howto ...

Highlight the active page or section dynamically using HTML and jQuery - How can it be achieved?

What am I trying to achieve? I am attempting to use jQuery to dynamically highlight the current page from the navigation bar. Am I new to jQuery/HTML? Yes, please excuse my lack of experience in this area. Have I exhausted all resources looking for a sol ...

What is the best way to extract information from an XML file using JQUERY and present it neatly in a table format

I am looking to populate a table with data from an XML file as shown below: <table> <th>Head 1</th><th>Head 2</th><th>Head 3</th> <tr><td></td><td></td><td></td></tr> ...

Extracting a parameter from a URL using C#

Imagine having a URL such as http://google.com/index.php?first=asd&second=mnb&third=lkj What is the method to extract the second value (mnb) using C#? ...

Issues with HTML5 video playback in Apple machines using the Firefox browser

On a website I'm developing, I've included an HTML5 video that works perfectly except for one specific issue - it won't play on Firefox in Apple devices. Surprisingly, it functions well on all other browsers and even on Firefox in Windows an ...

Retrieving data from an HTML dropdown menu in a Django views.py file

I'm new to working with Django and I could really use some guidance. I'm trying to retrieve the values selected by users from the select options in a form, and then use those values in my views.py file. So far, I haven't had much success wit ...

Retrieve information from the existing URL and utilize it as a parameter in an ajax request

Currently, I am working on a website with only one HTML page. The main functionality involves fetching the URL to extract an ID and then sending it to an API using an AJAX call. Upon success, the data related to the extracted ID is displayed on the page. H ...

What is the method to extract div text using Python and Selenium?

Is there a way to extract the text "950" from a div that does not have an ID or Class using Python Selenium? <div class="player-hover-box" style="display: none;"> <div class="ps-price-hover"> <div> ...