Can we display just 2 pricing tables instead of 4 and align them in the center?

Apologies for my lack of experience, I am relatively new to this field!

I have encountered the following problem:

I currently have 4 pricing tables available:

4 pricing tables

However, when I attempt to remove 2 pricing tables in order to keep only 2 in the center (as it was designed in the template), the layout becomes messy and appears like this: Appears like that

I would like to center them properly. How can I achieve this?

This is the code snippet for the pricing tables:

  <!-- Price Start -->
    <section class="section bg-light" id="price">
        <div class="container">
            <div class="row justify-content-center">
                <div class="col-12 text-center">
                    <div class="section-title">
                        <h4 class="title text-uppercase fw-normal mb-4">Our <span class="text-primary fw-bold">Pricing</span> </h4>
                        <p class="text-muted mx-auto para-desc mb-0">Splash your dream color Bring your home to lively Colors. We make it a priotity to offer flexible services to accomodate your needs</p>
                    </div>
                </div><!--end col-->
            </div><!--end row-->

            <div class="row">
               
                
                <div class="col-lg-3 col-md-6 mt-4 pt-2">
                    <div class="pricing-table shadow rounded business-plan position-relative bg-white text-center">
                        <h5 class="pricing-plan rounded-top text-uppercase bg-primary text-light p-4 mb-0">Standard Package</h5>
                        <div class="price-value p-4 text-center position-relative">
                            <div class="price-lable rounded-pill">
                                <h4 class="mt-4 d-block">€640</h4>
                            </div>
                        </div><!--end price value-->                             
                        <div class="pricing-features">
                            <ul class="list-unstyled mb-0">
                                <li>Consultation</li>
                                <li>Assistance with choosing universities</li>
                                <li>Sworn Polish translation within Poland</li>
                                <li>Online registration</li>
                                <li>Communication with universities and clarifying any questions</li>
                                <li>100% admission success rate</li>
                                <li>Accommodation in suitable housing</li>
                                <li>Financial consultation during studies</li>
                                
                            <div class="price-button p-4">
                                <!-- <a href="#" class="btn btn-primary rounded-pill">Buy Now</a>                                         -->
                            </div><!--end button-->
                        </div><!--end price features-->
                    </div><!--end table-->
                </div><!--end col-->
                
                <div class="col-lg-3 col-md-6 mt-4 pt-2">
                    <div class="pricing-table shadow rounded bg-white text-center">
                        <h5 class="pricing-plan rounded-top text-uppercase bg-light p-4 mb-0">VIP Package</h5>
                        <div class="price-value p-4 text-center position-relative">
                            <div class="price-lable rounded-pill">
                                <h4 class="mt-4 d-block">????</h4>
                            </div>
                        </div><!--end price value-->                            
                        <div class="pricing-features">
                            <ul class="list-unstyled mb-0">
                                <li>Includes the "Standard" package</li>
                                <li>We will meet you at the airport or train station</li>
                                <li>Assistance with settling in</li>
                                <li>Personal introductory program arrangement</li>
                                <li>Visit to currency exchange point;</li>
                                <li>Visit to shopping center for domestic and food purchases;</li>
                                <li>Orientation on public transport guidelines;</li>
                                <li>Guidance and introduction to university: visit to dean’s office, student ID issuance, class allocation.</li>
                                <li>Bank account opening (if desired);</li>

                            
                           
            </div><!--end row-->
        </div><!--end container-->
    </section><!--end section-->
    <!-- Price End -->

I suspect Bootstrap is being used here, although I am not very familiar with it. My assumption is that the issue lies somewhere in bootstrap.min.css perhaps?

Answer №1

One way to center your content within a column is by using the "mx-auto" class.

Let's take the example of a card layout here:

<div class="container">
<div class="row ">
   <div class="col-lg-4 mx-auto">
      <div class="card">
         <div class="card-header">Header</div>
         <div class="card-body">Content</div>
         <div class="card-footer">Footer</div>
      </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

"Unlock the secrets to commanding respect in the web form layout by mastering the art

I have a fieldset that includes a legend with potentially long text content. I need the legend to only take up 50% of the width of the fieldset. Currently, when the legend is too lengthy, it still occupies 50% of the space but causes the entire fieldset ...

Leveraging IPFS to host a CSS stylesheet

I've been trying to load a css stylesheet using this link... I attempted adding the link tag to both the main and head tags. <link type="text/css" rel="stylesheet" href="https://ipfs.io/ipfs/Qmdun4VYeqRJtisjDxLoRMRj2aTY9sk ...

Tips on creating unit tests for AngularJS attribute-type directives using Jasmine

I have a directive that doesn't use any template or templateUrl. How can I write a unit test for this directive? Below is the code for my directive. var app = angular.module('SampleDirective'); app.directive('sampleContent', [fun ...

How can triple nested quotes be utilized within Django templates?

Currently, I am attempting to utilize inline CSS and load an image as a background in a Django template. My goal is to include three quotes, however, I am unsure of the correct way to achieve this. Can anyone provide guidance on how to properly modify the ...

Challenges with altering the height of a div through animation

HTML <div class="blok1" ></div> <div class="blok2"></div> <div class="blok3"></div> CSS .blok1 { background-color: green; border-bottom-left-radius:15px; border-bottom-right-radius:15px; h ...

What is the best way to insert a Bootstrap Glyphicon into an asp:Button in ASP.Net?

In my current project, I am utilizing Bootstrap 3 and aiming to incorporate Bootstrap Glyphicons into ASP.net buttons. However, I encountered an issue when using the following code (I discovered a solution that utilizes Twitter Bootstrap <span> tags ...

Animating an image in an HTML document by clicking a button through jQuery

I am trying to figure out how to make an image move from the left to the right of a page when a button is clicked. I thought the code below would work, but unfortunately, it's not functioning as expected. I'm new to JQuery and could use some guid ...

Automated downloading based on operating system recognition

1067/5000 How can I use JavaScript to automatically determine the user's operating system on a webpage and then download the correct installation file? Here is the code I have: HTML <!DOCTYPE html> <html> <body> <iframe id=" ...

Can you please explain how to reverse the deletion on both ends just like I demonstrated in my video using VS Code?

Watch a brief video detailing my issue Despite uninstalling all extensions and resetting settings to default, the problem persists. Could I be missing something? ...

Webpack is failing to recognize certain CSS files

My development stack includes Vue.js 2.5.15, Webpack 4.12.0, css-loader 0.28.11, ASP.Net Core 2.1 in Visual Studio 2017. Starting with the Visual Studio asp.net core template project for Vue and Typescript, I prefer to have individual small CSS files with ...

A versatile function that displays a loading icon on top of a specified div

Is it possible to pass an identifier for a particular div element to a function, where the function will display a loading image that covers the entire div, and then pass the same identifier to another function to hide the loading image? I am looking to cr ...

The Hover Effect fails to function properly on Internet Explorer 6

I have successfully implemented a CSS hover effect that works perfectly in all browsers except for IE6. The issue arises when I add a link to the page - the hover effect functions as expected. However, if I remove the link, the hover effect stops working. ...

What is the correct way to display single line code snippets in Firefox?

When attempting to display a single line of code within a code block, the layout appears too close to the line numbers (this issue only occurs in Firefox): https://i.sstatic.net/WXZp7.png The HTML code responsible for this display is automatically generat ...

What is the best way to adjust the YouTube player to fit the width of the page while maintaining its aspect ratio?

I would like to feature a YouTube video on my website. My goal is to resize the video to fit a percentage of the user's browser while maintaining the aspect ratio. Here is what I have attempted so far: <iframe width="87%" height="315" src="http: ...

`Is there a tutorial on parsing HTML with nested tags using Simple DOM Parser?`

I am currently working on parsing an HTML file that contains several DIV elements structured like this: <div class="doc-overview"> <h2>Description</h2> <div id="doc-description-container" class="" style="max-height: 605px;"> <di ...

Design a PHP tool for generating custom CSS frameworks

After attempting to create a CSS frame generator similar to this one, I stumbled upon a solution that works well with one exception. PHP Code: <?php function print_css($parentTag, $prefix, &$dup_checker) { if ($parentTag->nodeName == &apos ...

Hide table cells using jQuery if they do not contain a specific content

Is there a way to conceal the td elements in a table that do not have the inline CSS attribute width:12%;? See code example below. <td class="" id=""> <td class="" id=""> <td class="" id=""> <td width="12%" class="" id=""><!-- ...

AngularJS causing issues with page redirection functionality

Incorporating angularjs routing into my web app has been a big task. I've set up the $locationProvider and included the base tag in the HTML head as <base href="/webapp/"> to get rid of the hash symbol in the URL. It's been smooth sailing w ...

e.target not functioning in Opera and Chrome browsers

After implementing a jQuery navigation bar with dropdown functionality, I encountered an issue where the dropdowns did not disappear when clicking outside of the navigation bar. Despite this glitch, the majority of the functionality is working correctly. ...

I have an HTML table with multiple cells containing inner HTML tables. I have implemented a function along with buttons to filter the main table, excluding the inner tables

My HTML Table is generated from my database, containing information about machines and their status pulled from emails with HTML Tables. Each row has a click option to open/hide the <td> tag showing the original table for more details and better trac ...