Complex design within bootstrap

Creating a complex layout in Bootstrap has been challenging for me. Whenever I remove the image on the right side, all other images resize, which is not what I want.

How can I ensure that all the images maintain the same size regardless of how many are displayed?

I attempted to use fixed width and height values, but the outcome was unsatisfactory. Since the number of images may vary based on titles, I could have 3, 2, or even 5 images.

If you have any suggestions or solutions, please help me out!

Before removing: After removing:

.container-fluid .expo {
                ...
            }
            ...
<div class="container-fluid expo">
                <div class="row expoinfo">
                    <section class="col-lg-10 col-lg-offset-1">
                        <h3>title</h3>
                        
                        <div class="bigimg col-sm-6 col-md-6 col-lg-6">
                            <a href="http://fakeimg.pl/700x400/" title="">
                                <img src="http://fakeimg.pl/600x600/" alt="">
                            </a>
                        </div>

                        ...
                        
                      
                        </section>
                    </div>
                </div>

Answer №2

Success! I've discovered the solution.

    <div class="row">
     <section class="col-lg-offset-2 col-lg-8">
     <h3>title</h3>
      <div class=" thumbcol col-md-4 col-lg-6">
        <div class="thumbnail"><img src="http://fakeimg.pl/300x300/" alt="Thumbnail Image">
        </div>
      </div>
      <div class=" thumbcol col-md-4 col-lg-3">
        <div class="thumbnail"><img src="http://fakeimg.pl/300x300/" alt="Thumbnail Image"> </div>
      </div>
      <div class=" thumbcol col-md-4 col-lg-3">
        <div class="thumbnail"><img src="http://fakeimg.pl/300x300/" alt="Thumbnail Image"></div>
      </div>
      <div class=" thumbcol col-md-4 col-lg-3">
        <div class="thumbnail"><img src="http://fakeimg.pl/300x300/" alt="Thumbnail Image"></div>
      </div>
     </section>
    </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

What is the best way to display an AngularJS expression using a ternary operator?

Can AngularJS expressions be shown in a ternary operator? If so, can someone please provide guidance on how to achieve this? Thank you in advance. I have attempted the following, but it is not working as expected: {{ jdFile ? "Job Description File : {{fi ...

What are some strategies for disregarding global CSS styles?

I am facing an issue on my html page with a specific div structure. The <div id="container">/* lots of nested html with elements like div, ul, li etc */</div> is causing some trouble in my global css file called style.css. The style. ...

What is the best way to apply CSS styles to a child div element in Next.js?

I'm currently working on enhancing the menu bar for a website project. Utilizing nextjs for my application I am aiming to customize the look of the anchor tag, however, encountering some issues with it not rendering correctly. Here is a snippet of ...

Issue with Mobile NavBar remaining visible after clicking on target element in HTML CSS

On my website, everything works perfectly with the Nav bar except for when I am on mobile. When I click on any href from my Nav Bar, it directs me to the correct location but does not close the Nav Bar afterward. I need it to function this way: After click ...

Bootstrap 4 Equidistant Text Alignment

https://i.sstatic.net/Dbvq5.png I've been working on achieving a balanced layout and I'm looking for help. How can I create even spacing vertically between the text elements while keeping them contained within the card? Below is the HTML code s ...

Refresh iOS / iPad website only upon scrolling, not when utilizing anchor links

Currently, I am in the process of troubleshooting this website: This site is hosted on a LAMP server and is utilizing CMSMS 2.1x, if that detail makes any difference. (By the way, the smarty components are causing some performance issues.) While the desk ...

Inserting text directly into innerHTML instead of relying on innerText

Can we insert a string into innerHTML without relying on innerText? For example: var sentence="<b>hello there</b>"; document.querySelector(".container").innerHTML='<span class="thing"></span>'; document.querySelecto ...

Establishing the sizing of an element across various breakpoints

I'm having trouble setting up varying widths based on different breakpoints. For instance, the code below will be used for all breakpoints: <nav class="navbar-nav w-75 ml-md-4"> ... a select element </nav> But how do I enable w-100 for s ...

Is there a way to automatically scroll two identical vertical long images one after the other in a continuous loop?

My goal is to replicate the effect seen on the website , where a vertical image moves downwards and then repeats by starting from the bottom once it reaches the top. Essentially, there are two images moving downward in this loop. I attempted to find a sui ...

Styling a multilevel list with CSS that includes a combination of

Hello everyone! I am looking to create a mixed multilevel list in CSS, similar to the one shown in this image: image description here. I have attempted the following code snippet, but it seems to apply the counter to unordered lists: ol { counter-res ...

Tips for increasing the font size using html and css?

I am encountering an issue with my HTML code: <div class="a"><font size="40"><font color="black">A</font></font></div> No matter what I try, I cannot seem to increase the font-size. Even adjusting the value in the co ...

Guide to implementing event handling with JavaScript on an HTML form webpage

On my HTML page, I have a PHP extension file named 'welcome.php'. Within this page, there is a button labeled "baggage.php" that, when clicked, opens another page. On this new page, I have created dropdown menus for 'From' and 'To& ...

Changing the opacity on hover doesn't seem to be working

I currently have a simple dropdown menu where the different menu choices are supposed to change opacity when hovered over. The default opacity is set at 0.5. Below is the hover function in my jQuery code: $('#cat1 > li > a').hover(functio ...

I'm confused why this code is functioning in JSFiddle but not on my HTML webpage

For the first time, I am encountering this issue. I am currently attempting to integrate this code into my application http://jsfiddle.net/TC6Gr/119/ My attempts include: Pasting all the jsfiddle code in a new page without my code, but it doesn't w ...

Removing all table rows except one in Jquery

I currently have this code in my view: <script> $(document).ready(function() { $("#add_instruction").click(function(){ $("#instructions").append("<tr><td></td><td><input type='text' name='rec ...

Tips for making an image resize automatically within a parent Grid container in Material UI

I am attempting to resize the image inside a Grid to match the size of the parent Grid. I have tried using minheight and height properties, but they do not seem to be effective. I also attempted to use a styled component for this purpose. return ( ...

Ways to remove a row from a div element in JavaScript without relying on tables

Hey everyone, I'm looking for a way to delete a row within a div when a delete button is pressed using JavaScript. The catch is that I need to accomplish this without using a table, only with div elements. Can anyone provide a solution for me? func ...

Challenges that arise from IE6 css issues

I am encountering an issue with the jquery slider in IE6. To see the problem, please visit the link below and click on the "dodaj u košaricu" button located at the bottom right. Then, navigate to the "košarica" tab and attempt to move the slider up and d ...

Is it possible to edit the HTML DOM of an external URL that is opened using window.open?

Imagine a scenario where I have a page located at: www.mydomain.com When a user clicks on a button, it triggers the opening of a new window using: newWin = window.open("https://www.otherdomain.com","a","height=800,width=1000"); Now, my objective is to m ...

Tips for concealing non-selected categories in the product tree when a single category is chosen

When navigating through the shopping cart, users will encounter a product category tree structured as follows: Category1 Subcategory11 Subcategory12 ... Category2 Subcategory21 Subcategory22 ... Category3 Subcategory31 Subcategory32 ... ...