What's new

Welcome to the forum 👋, Visitor

To access the forum content and all our services, you must register or log in to the forum. Becoming a member of the forum is completely free.

Div Location Issue with Bootstrap 5.3

lukekfrost

New member
Joined
Feb 15, 2025
Messages
1
Reaction score
0
HTML Coins
0
Good Afternoon All,

Apoligies if this is posted in the wrong area I am new to the forum.

To give you a bit of background I am not new to development and have done a variety of different languages however my level of HTML knowledge while growing is still very much more towards the basic level than the advanced.

Saying that I am currently working on developing this and as part of this I am working on a project where I am creating a fictitious customer portal that is completely responsive. I have opted to go with Bootstrap 5.3 for this and I am getting on well with it however I am facing a particular issue that I can't seem to sort out I am hoping some of you far more experienced and knowledgeable folk on here can assist me with and try and explain it to me.

The code snipit I am having the issue with is as follows:

HTML:
<div class="row">
    <div class="col-md-6">
        <div class="info-box">
            <img src="./assets/img/whatsapp_qr.png" class="img-fluid img-thumbnail" alt="WhatsApp QR Code">
        </div>
    </div>
    <div class="col-md-6">
        <div class="info-box">
            <button type="button" class="btn btn-success mb-2 text-center">Click here to start conversation</button>
        </div>
    </div>               
</div>

This displays the following:
1739625396372.png
While I am not unhappy with this and the responsive side of things is working really will I was hoping to a stage further, and make it more visually appealing and was hoping to transfer it to more like the following photoshopped image
1739625598537.png

I have been looking through all the examples and documentation on the Bootstrap website and I have found using the text-centre class at the top level div to centralise the content within it however that isn't working for the button. I have tried adding it on several levels, and it never centralises the bottom.

Regarding removing the gap I have been playing around with the padding options on the info-box class and again this doesn't seem to be removing the gap from below the image.

Hopefully, this explains whats happening and what I am trying to do, however, if there are any further questions please let me know.

Thank you all in advance

Luke
 

Theme customization system

You can customize some areas of the forum theme from this menu.

  • Wide/Narrow view

    You can control a structure that you can use to use your theme wide or narrow.

    Grid view forum list

    You can control the layout of the forum list in a grid or ordinary listing style structure.

    Picture grid mode

    You can control the structure where you can open/close images in the grid forum list.

    Close sidebar

    You can get rid of the crowded view in the forum by closing the sidebar.

    Fixed sidebar

    You can make it more useful and easier to access by pinning the sidebar.

    Close radius

    You can use the radius at the corners of the blocks according to your taste by closing/opening it.

  • Choose the color combination that reflects your taste
    Background images
    Color gradient backgrounds
Back