Positioning Bootstrap footer vertically in HTML

Having trouble with aligning the left text and custom styled button to the right and top of the checkout button, despite using various codes like float:right, margin-left, position relative/absolute. Shifting the button also didn't work, so now considering a vertical direction approach. Maybe something similar to "Total Coins =".

/* Checkout Success Modal*/
#checkoutModalBtn{
    background-color: var(--pri-color);
    color: white; 
    font-size: 1.5rem;
    margin: 0 12rem 0 auto;
    padding: 8px 14px;
    margin-top:10rem;
}
#checkoutModalBtn1{
background:white;
    font-size: 1.5rem;
    margin: 0 12rem 0 auto;
    padding: 8px 14px;
    border: none;
    outline: none;
    border-top: 1px solid #111111;
    border-bottom: 1px solid #111111;
    pointer-events: none;
    float:right;
}
.coinsTotalRow{
    float:right;
}
 <div class="modal-footer">
                <div class="coinsTotalRow">
                    <p class="checkoutTotal">Total Coins: </p>
                    <p id="checkoutcoinsTotal" onkeypress="return (this.innerText.length <= 10)">

                    <p>
                </div>
                <button type="button" href="#checkoutModal" id="checkoutModalBtn1" data-toggle="modal" class="btn btn-primary"></button>
                <button type="button" href="#checkoutModal" id="checkoutModalBtn" data-toggle="modal" class="btn btn-primary">CHECKOUT</button>
            </div>

                                              "Checkout button"

Answer №1

Do you think something like this would suit your needs?

Check out this link

/* Custom Styling for Checkout Success Modal*/
#checkoutModalBtn{
    background-color: var(--pri-color);
    color: white; 
    font-size: 1.5rem;
    margin-top: 3rem;
    position: absolute;
}
#checkoutModalBtn1{
background:white;
    font-size: 1.5rem;
    border: none;
    outline: none;
    border-top: 1px solid #111111;
    border-bottom: 1px solid #111111;
    pointer-events: none;
  position: relative;
}
.coinsTotalRow{
}
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">

 <div class="modal-footer">
                <div class="coinsTotalRow">
                    <p class="checkoutTotal">Total Coins: </p>
                    <p id="checkoutcoinsTotal" onkeypress="return (this.innerText.length <= 10)"></p>
                </div>
                
               
                <button type="button" href="#checkoutModal" id="checkoutModalBtn1" data-toggle="modal" class="btn btn-primary"></button> 
                
      
                <button type="button" href="#checkoutModal" id="checkoutModalBtn" data-toggle="modal" class="btn btn-primary">PROCEED TO CHECKOUT</button>
            </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

Eliminate the outline of the pager row in an asp.net grid view

Within my grid view, I have applied a bottom border to all cells. However, this border is also appearing on the pager row, which is not desired. To address this issue, I attempted to use jQuery to remove the border, but it seems that my selector is incorre ...

Images in a list using Bootstrap are not appearing aligned in a row as

Although it may appear simplistic, as a beginner coder I am struggling to get my code to display properly (I am using bootstrap). The desired result I want to achieve is FLAG languagename FLAG languagename Here is the HTML: <div class=""> <ul ...

What is the best way to position a website in the center in the provided example?

Simple question here, couldn't find it in the search so sorry if it's a repeat. How is the content on this responsive website centered? I've checked the body margins but can't seem to locate anything. Thank you for your help. ...

positioning a div based on the location of another div

I am currently working on aligning a div that sits at the bottom of all other divs. The last div is set to float and aligned at the top using CSS. I am unsure how to align it from the left side without any issues when the screen resolution changes. Is th ...

Setting the selected value of a COREUI multiselect widget

I received the following JSON response from an API. {"first_name":"Person 1","last_name":"Person 1","email":"<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="78081d0a0b17163 ...

App.post is returning a set of empty curly braces as the response

I am currently working on an express.js application that retrieves data from a MySQL database and displays it on the screen. I am also trying to implement an insert functionality so that I can add data to the database via the browser. However, when I post ...

Resize the shape of an image's polygon

Is there a way to independently scale a specific polygon of an image on hover? For example, I have a world map and I would like to enlarge a country when hovering over it, then return it to its original size when no longer hovering. I am familiar with us ...

What is the method for ensuring that a GreaseMonkey script impacts elements on a page prior to their appearance?

I'm currently working on a project that requires hiding images on a specific website while still displaying the alt text. Initially, I tried to achieve this using Stylish on Firefox and posted the following question: How to force an image's alt ...

What could be the reason for the malfunctioning of the header() function in PHP

Currently, I'm utilizing AJAX to facilitate user registration for a service. Here's the code snippet for the submit button: <input type="button" id="register" name="register" class="btn btn-success" onclick="registration();" value="Register"/ ...

Discover the content of meta tags using Python and Beautiful Soup

I am attempting to extract the meta data from a specific website, as shown in the code below. import requests from bs4 import BeautifulSoup source = requests.get('https://www.svpboston.com/').text soup = BeautifulSoup(source, features="html.par ...

Styling elements with pseudo-classes when a horizontal scroll bar is activated

I have been experimenting with CSS pseudo-classes, specifically the before and after classes. While I have had no issues with the before class, I am running into a horizontal scroll problem when using the after class. I want to avoid using overflow: hidde ...

Enhance the numerical value displayed in jQuery UI tooltips

I have folders with tooltips displaying text like '0 entries' or '5 entries' and so on. I am looking for a way to dynamically update this tooltip number every time an item is added to the folder. The initial count may not always start a ...

Eliminate specified image dimensions when utilizing the "clip:rect" property in CSS and HTML

When trying to resize an image using clip: rect() in HTML, I encountered a problem where the Inspect tool would display the original height and width of the image instead of the resized dimensions. My goal is to achieve the following: On a screen width of ...

HTML list with clickable elements for querying the database and displaying the results in a <div> element

Patience please; I am a newcomer to StackOverflow and this is my inaugural question. Struggling with writing an effective algorithm, I wonder if my attempts to "push" it forward are causing me to complicate what should be a straightforward concept, or if i ...

Let's discuss how to include the scrollTop option

I am new to coding and I need help adding a scrollTop margin of +100px to my code. The page already has some top margin but I can't seem to locate it. I'm also having trouble finding where the margin-top is being set in the JavaScript file. /*** ...

Is there a way for me to make my navigation fill the entire height of the header?

I am trying to create a navigation menu within a header div where the list items are displayed horizontally inside a ul element. I want these list items to be 100% the height of the header. Despite trying to set the height to 100% on various elements such ...

Leveraging AngularJS to enhance the dynamic HTML content within Datatables

My angular application includes a Datatable where I alter cell content to include HTML elements. In the given code snippet, I specifically modify the cell content of the 5th column to incorporate links. Additionally, I intend to implement a tooltip featur ...

Why is it that code that appears identical in the same browser and same size can look different when one version is deployed on localhost and the other remotely?

I've been working on a Material-UI Table where I customized the headers and table styles. While testing it locally with yarn start, it looked like this: https://i.stack.imgur.com/7yU2H.png However, when I viewed it on the remote system, it appeared ...

Potential reasons for the malfunction of the bootstrap 5 navbar dropdown

After copying the code for the navbar dropdown from Bootstrap 5 documentation, the dropdown feature is not functional. Clicking on the dropdown does not display the links ("action", "another action", "something else"). What steps should I take to troublesh ...

The binding in Knockoutjs is working properly, but for some reason the href attribute in the anchor tag is not redirecting to

Here is the HTML code snippet I am working with: <ul class="nav nav-tabs ilia-cat-nav" data-toggle="dropdown" data-bind="foreach : Items" style="margin-top:-30px"> <li role="presentation" data-bind="attr : {'data-id' : ID , 'da ...