Footer not being pushed down by content in mobile view on page

Hello everyone,

Can you assist me with a query, please?

My form works perfectly fine in desktop view, but it gets cut off on mobile view and I'm unsure of the reason why.

Here is my code:

.upload-pic {
    position: absolute;
    max-width: auto;
    max-height: auto;
    padding: 0;
    z-index: -1;
}

.upload-form-section {
    clear: left;
    background-size: cover;
    background-position: center;
    height: 950px;
    position: relative;
}

.upload-form {
    font-family: Montserrat, sans-serif;
    padding-top: 260px;
    background-color: rgba(255, 255, 255, 0.555);
    max-width: 90%;
    position: relative;
    padding: 30px;
    clear: initial;
}

.submit-heading { 
    font-family: Montserrat, sans-serif;
    color: #2a5490;
    padding-top: 140px;
    padding-left: 83px; 
}

p.donate {
    font-family: Montserrat, sans-serif;
    padding-top: 10px;
    padding-left: 83px;
    padding-bottom: 20px;
}

.text-input {
    width: 100%;
    height: 25px;
    margin: 5px 0 20px 0;
    border: 0.5px solid #000000;    
}


.text-input:hover {
    border-color: #df6530;
}

.upload-button {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 15px 32px 15px 32px;
    text-align: center;
    font-size: 100%;
    background-color: #df6530;
    border-color: #df6530;
    color: #fff;
    display: block;
}

.btn-success:hover {
    background-color: #2a5490;
    border-color: #2a5490;
    padding-top: 10px;
}

.btn-success:active {
    background-color: #df6530 !important;
    border-color: #df6530 !important;
}
<section class="upload-form-section">
        <h4 class="submit-heading">Submit and showcase your skills</h4>
        <p class="donate">Please donate, fill in the form and upload your video. Our friendly coaches will get back to you with our thoughts and constructive feedback.</p>
<div class="container">
            <div class="row">
                <div class="col">
                    <form class="upload-form" method="POST" action="https://formdump.website.net/">
                        <label for="name">Your Name:</label>
                        <input type="text" id="name" name="name" class="text-input" required>
                        <label for="email">Your Email (used to donate):</label>
                        <input type="email" name="email_address" id="email_address" class="text-input" required>
                        <label for="phone">Your Phone Number:</label>
                        <input type="text" id="phone_number" name="phone_number" class="text-input" required>
                        <p>Iā€™d prefer to be contacted by:
                        <label for="phone">Phone</label>
                        <input type="radio" name="contact_preference" id="phone" value="phone" required> &nbsp &nbsp
                        <label for="email">Email</label>
                        <input type="radio" name="contact_preference" id="email" value="email" required>
                        </p>
                        <div class="custom-file">
                            <input type="file" class="custom-file-input" id="customFile">
                            <label class="custom-file-label" for="customFile">Choose file</label>
                        </div>
                        <button type="submit" class="btn btn-success upload-button"> Upload <i class="fas fa-upload"></i></button>
                        <p>I would like to make a donation to be shared with the charities we are supporting. <a
                                href="https://www.paypal.com/" target="_blank"><i class="fab fa-cc-paypal"></i></a></p>
                    </form>
                </div>
            </div>
        </div>
    </section>

I appreciate any help you can provide.

Best regards

Andrew

Answer ā„–1

The styling for the upload form is as follows:

.upload-pic {
    position: absolute;
    max-width: auto;
    max-height: auto;
    padding: 0;
    z-index: -1;
}

.upload-form-section {
    clear: left;
    background-size: cover;
    background-position: center;
    height: 950px;
    position: relative;
}

.upload-form {
    font-family: Montserrat, sans-serif;
    padding-top: 260px;
    background-color: rgba(255, 255, 255, 0.555);
    max-width: 90%;
    position: relative;
    padding: 30px;
    clear: initial;
}

.submit-heading { 
    font-family: Montserrat, sans-serif;
    color: #2a5490;
    padding-top: 140px;
    padding-left: 83px; 
}

p.donate {
    font-family: Montserrat, sans-serif;
    padding-top: 10px;
    padding-left: 83px;
    padding-bottom: 20px;
}

.text-input {
    width: 100%;
    height: 25px;
    margin: 5px 0 20px 0;
    border: 0.5px solid #000000;
}

.text-input:hover {
    border-color: #df6530;
}

.upload-button {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 15px 32px 15px 32px;
    text-align: center;
    font-size: 100%;
    background-color: #df6530;
    border-color: #df6530;
    color: #fff;
    display: block;
}

.btn-success:hover {
    background-color: #2a5490;
    border-color: #2a5490;
    padding-top: 10px;
}

.btn-success:active {
    background-color: #df6530 !important;
    border-color: #df6530 !important;
}

Thank you in advance for any assistance provided.

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

Tips for showcasing information from an external model on your webpage without the need to reload the entire page

My goal is to dynamically show a User's name above a form field where they input their Employee # without requiring a page refresh. For instance, when they enter their # and move to the next field, I want their name to appear above based on the datab ...

substitute bullet point list item with new element

Assuming I have a list: <ul class="ul-1"> <li class="li-1">xx -1</li> <li class="li-2">xx -2</li> <li class="li-3">xx -3</li> </ul> Then I store it as: var list = $('.ul-1').html(); In ...

When a block is clicked, jQuery will reveal that block while hiding the others sequentially, starting with the second block, then the third, and finally the fourth

Creating a navigation menu with 4 blocks can be a bit tricky, especially when trying to show one block at a time upon click. Here is my code attempt, but unfortunately it's not working as expected. I would greatly appreciate any help or suggestions on ...

Using JQuery to call a PHP file and verify a unique identifier

I've been attempting to use this tutorial to check the availability of certain IDs while a user fills out forms. However, I'm working with PostgreSQL instead of MySQL and seem to be encountering issues with my PHP file. There seems to be a small ...

What techniques can I use to achieve a seamless transition using Javascript and CSS?

I'm striving for a seamless CSS transition. The concept of transition had me puzzled. Even though I utilized the setTimeout method in JavaScript to make my CSS functional, it lacks that SMOOTH feel! Check out my code below. function slideChange( ...

Discovered a critical vulnerability that requires your attention. Execute `npm audit fix` to resolve the issue, or use `npm audit` for more information

After attempting to install mysql using 'npm install mysql', I encountered an error message stating: "found 1 critical severity vulnerability run npm audit fix to fix them, or npm audit for details" Following this, I proceeded with 'npm au ...

The CSS 'top' attribute is without impact

As I begin my journey with CSS, I am eager to grasp some of its behaviors. In the CSS file, the following code is defined: #spa { position : absolute; top : 8px; left : 8px; bottom : 8px; right : 8px; min-height : 500px; min-width : 500px ...

Utilize the HTML Tidy executable in combination with PHP, as opposed to compiling it

I have created a PHP application specifically for shared hosting environments. Dealing with the inconsistency of hosts providing HTML Tidy can be challenging for me. Is there a way to integrate the tidy executable directly into my PHP application and proce ...

Noticed a peculiar outcome when working with hexadecimal calculations in LESS. What could be causing this phenomenon?

I recently dove into the world of LESS and have found it to be quite interesting. However, I encountered a unique situation where a background color was assigned the code #03A9F4 - 100. Based on my limited knowledge of hexadecimal numbers from some IT clas ...

"Retrieve data from an Excel file and either present it in a textarea or store it as an array

Is it possible to use JavaScript to read an Excel file and convert a single column (identified by name or index) into an array in JavaScript? ...

Obtain the form value upon submission without the need to reload the page

I am facing an issue where I have a form and I want to trigger the display of a div (in the same page) and execute a JavaScript function upon clicking submit, all without causing a page refresh. <form action="#" method="post" name= "form1" id = "form ...

Changing colors in the rows of a table

Here is a fiddle I created to demonstrate my issue. https://jsfiddle.net/7w3c384f/8/ In the fiddle, you can see that my numbered list has alternating colors achieved through the following jQuery code: $(document).ready(function(){ $("tr:even").css("ba ...

Switch to display only when selected

When I click on the details link, it will show all information. However, what I actually want is for it to toggle only the specific detail that I clicked on. Check out this example fiddle Here is the JavaScript code: $('.listt ul').hide(); $( ...

Utilizing the '<' or '>' operator in combination with an if statement within a Repeater component

Is it possible to use an if statement in a repeater like this? <%#Eval("FN").ToString().Count > 0 ? "SB" : "" %> When I try to implement this, I receive an error 73 indicating that the > operator cannot be used. How can I adjust it so that i ...

Ways to turn off hover highlighting

Is there a way to disable the highlighting effect of the <select> element in HTML? When you hover over items in the dropdown list, a blue color strip moves with your mouse. I need to find a way to get rid of this effect. Here is an example of the c ...

Toggling designs with a simple click

I'm currently working on a ReactJS project and I'm trying to figure out how to change the color of a button when it's clicked. I've heard about the Ripple API, but I find it quite complex to use. Can anyone offer some advice on how I ca ...

The code provided creates a web form using HTML and ExpressJS to store submitted information into a MongoDB database. However, there seems to be an issue with the 'post' method, while the 'get' method functions correctly

When I try to submit entries (name, email, address) on localhost:3000 in the browser, the 'post' function is not creating an object in the mongo database even though it works from the postman. The browser displays an error message saying "unable ...

Guide on making a prev/next | first/last button functional in list.js pagination

Is there a way to enhance my paginated index by adding prev/next, first/last buttons? I am curious if anyone has implemented these features using List.js. <script src='//cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.min.js&ap ...

What is the preferred method for writing `*zoom: 1;` in CSS?

Trying to create my code, I decided to borrow some CSS files from older code. However, upon running yarn build I encountered several errors like: ā–² [WARNING] Expected identifier but found "*" [css-syntax-error] <stdin>:122:2: 122 ā”‚ * ...

Transferring user-selected values from JavaScript to a PHP file

When sending values from JavaScript to a PHP file, everything works smoothly when all the values are collected. Step1 functions perfectly as both fields are mandatory. However, in Step2, values are only sent when all the fields are selected. There are co ...