Combine three sets of columns with three additional sets of columns using the Bootstrap framework, without considering their sizes

Currently utilizing Boostrap, I have set up 2 rows with 3 columns each.

Displaying the layout in the image below:

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

The issue lies in the bottom row where the 3 columns are aligned in a single line. I aim for the 3 columns below to be closely connected to the 3 columns above (irrespective of their size), resembling a newspaper format.

Referencing the desired structure portrayed in the following image:

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

Here's a snippet of my code (basic HTML and Angular ng-repeat implementation):

<div class="row">
   <div ng-repeat="channel in channels">
       <div ng-if="$index % 3 == 0" class="clearfix"></div>
       <div class="col-md-4 well">
           <h1 class="h1-class" style="margin-left: 20px">
            {{ channel.name }}
           </h1>
       </div>
   </div>

Your guidance on achieving this desired layout is much appreciated!

Please forgive any shortcomings in my question format, as I was unsure how to accurately phrase it. Warm greetings from Chile.

Answer №1

<div class="grid">
    <div class="col-md-4">

        <div style="height:25px;border:1px solid black;">John</div>
        <div style="height:55px;border:1px solid black;">Emma</div>

    </div>

    <div class="col-md-4">

        <div style="height:35px;border:1px solid black;">Chris</div>
        <div style="height:25px;border:1px solid black;">Sarah</div>

    </div>

    <div class="col-md-4">

        <div style="height:15px;border:1px solid black;">Michael</div>
        <div style="height:65px;border:1px solid black;">Laura</div>

    </div>
</div>

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

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

How can you adjust the height of the Bootstrap Carousel component?

In the image below, the blue section indicates the triggering area of the bootstrap carousel. This screenshot was taken from the official Bootstrap documentation. https://i.sstatic.net/0KA8j.png I am interested in adjusting the height of the triggering r ...

Discover how to prevent a link or text from appearing if a user has already browsed a particular webpage

Is there a way to hide a link to another page if the user has previously visited that page? For example, I have 3 options - A, B, and C. If a user selects option A, links to pages B and C are displayed at the bottom of the page. However, if they then navi ...

What could be the reason my dropdown menu is not appearing on hover?

Currently, I am in the process of developing a menu using angularJS and google app script within a dialog box. I have been referring to this sample code for guidance. Instead of pasting all my code here, I can summarize what I have come up with: var a ...

Can you please explain the purpose of this function?

I came across this code snippet on a website and I'm curious about its function and purpose. While I'm familiar with PHP, HTML, CSS, and JavaScript, I haven't had the chance to learn JQUERY and AJAX yet. Specifically, I'm interested in ...

Retrieve the concealed division element's HTML content along with its formatting

Help needed with appending a hidden div with its styles intact. Despite using the code provided below, the appended div does not retain its styles. Any suggestions for an alternative method? var warningMessage = $('#warningDiv').html() fun ...

Using PHP to create multiple div elements and then concealing them all

I'm having an issue with the hide feature not working. My intention is to hide each dynamically generated div and gain control over them, but the problem seems to lie in the div id incrementing. Any assistance would be greatly appreciated! <?php $ ...

Deleting content in a text area when specific text is entered

Is there a way to clear the textarea value if I type in <br>? The code I have right now is shown below. I understand that this may seem like an odd request, but I am experimenting with a typing effect. function eraseText() { document.getElemen ...

Understanding the integration of sass with webpack in an Angular 4 project

Is it possible to reference a sass file instead of a css file directly in the index.html? If so, how does webpack compile the sass into a css file? Additionally, what is the most effective way to bundle the sass file when building the application? The ve ...

Iterate over the array and eliminate any stylesheets

Currently working on a website using WordPress, and dealing with some unwanted css files that come with certain plugins. I've been attempting to remove these stylesheets with JavaScript but keep running into an error saying Failed to execute 'qu ...

Troubleshooting: Why isn't my HTML5 video functioning

I recently added this element to my HTML file and upon previewing it in the browser, I noticed that the video box with controls appeared. However, I encountered a problem where I couldn't press play as the controls would turn from white to gray and be ...

Setting a card to the center within a col-md in Bootstrap 4: Step-by-step guide

I'm looking to position this card in the middle, not centered. How can I achieve that? I've already attempted using my-auto, but it didn't work at all. Please take a look at my code and suggest any necessary changes. Thank you! https://i.s ...

Is it possible to filter JavaScript Array while ensuring that select options do not contain duplicate IDs?

I am utilizing two datatables with drag and drop functionality. Each row in the datatables contains IDs. When I drag a row from table 1 to table 2, the data is stored in an Array. I have an addArray function that pushes the IDs into the Array, filters out ...

Modifying CSS in JQuery does not seem to have a lasting effect

My webpage uses JQuery to dynamically hide and show different parts of the content when a button is clicked. However, I am facing an issue where the changes only last for a brief moment before reverting back to the default styling... Here is a snippet of ...

html5 aside along with navigation

Check out this snippet of my html code: <!doctype html> <html> <head> <meta charset="utf-8"> <title>European Networking</title> <link href="css/style.css" rel="stylesheet" type="text/css"> <link href="css/fonts ...

Issue with Internet Explorer 7 - unable to align button to the right using float property

My webpage features a button and a footer, but I am unable to get the button to float right. Here is the code snippet: <div style="float: right;"> <asp:Button ID="btnSubmit" OnClick="btnSubmit_Click" runat="server" Text="Save" CssClas ...

Arrangement of HTML divs and styling classes

I have been experimenting with divs and classes in order to achieve proper alignment of text on my website. Currently, I am working with 2 classes that I would like to display side by side to create 2 columns. However, the right column containing the text ...

Variety of formatting options for menu items when the menu is in its collapsed state

I am working with a Bootstrap nav-bar that collapses into a button by default. Within my nav-bar, I have opted for images instead of text links. However, when the nav-bar is collapsed, I would like these images to be smaller in size. Is there a way to cu ...

Feature for jotting down notes, creating a break between lines without any information present

I'm currently working on implementing a note-taking feature for my web application. However, I have encountered two issues: Firstly, I am struggling to identify line breaks within the text. While I can hardcode text with line breaks, when a user clic ...

Hidden input for Vue form submission

I need to include two Id's with a user's input by adding them in a hidden input field. Since v-model doesn't work with hidden inputs, I have set up my hidden input like this: <input type="hidden" ref="property_id" :nam ...

What is the method for modifying the color and size of dingbat unicode characters on mobile Safari using html entities?

Is it possible to adjust the CSS properties of dingbat symbols? Unfortunately, attempts to do so in iOS Safari have been unsuccessful. <span class="dingbat">&#x2716;</span> <style> .dingbat { color: blue; font-size: 100px; } ...