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

Is there an easy method to verify if the local storage is devoid of any data?

Query is named aptly; seeking to verify in a conditional statement. ...

Top Bootstrap dropdown menu overlaid with Leaflet zoom buttons

I'm encountering an issue depicted in the screenshot below. Is this related to bootstrap or leaflet? How can I adjust the position/style of the dropdown menu so that it appears above all other elements? ...

What is the best way to retrieve information from a webpage I have created using an express backend and an HTML frontend

I designed a login page named index.html that prompts users to enter their email and password, followed by a submit button with the label "Log In": <input type="submit" value="Log In" id="loginbutton"> Within my app.js ...

Does "br" not play well with flexbox?

After creating a table using flexbox, I made an interesting observation: the br element seems to have no effect within the flexbox. For example: .flexbox { display: flex; flex-wrap: wrap; border: 2px solid red; padding: 2px; } .item { width: ...

When attempting to read text from an HTML file, JTextPane fails to include a newline character in the output

I am currently working on a project that involves extracting text from an HTML file based on the element's id and displaying it in a JTextPane. However, I am facing an issue where the displayed text does not go to a new line. Here is a snippet of the ...

Instructions for creating a table in this specific format

I have some data stored in MySQL and I am looking to display it in a specific format: Data: Name, Image URL, Link I would like to dynamically print it like this: Even though I don't know the user's screen width, I want it to be displayed as w ...

The anchor is ineffective (directs to the # but stays in place)

Every attempt I've made to find a solution online has failed. When I hover over the link, it directs me to the correct URL, but the page doesn't move. I'm using an up-to-date version of Chrome. Below is the code snippet: Edit: It seems tha ...

What could be the reason for my difficulties in retrieving the necessary data from this website with Selenium?

Basically, I've been struggling to interact with the "enter your address" field on a particular website through xpath and selenium. I'm curious as to why this is happening. Detailed Explanation The website in question is this one. It features a ...

Tips for displaying cards with responsive design utilizing Bootstrap 5

How can I display cards responsively for mobile, desktop, and iPad? My goal is to have: - One column for mobile - Two columns for iPad - Four columns for desktop The current code only works for mobile and desktop, not for iPad. On my iPad, it's sh ...

Is there a way to ensure that the header is centered at the top and the footer is centered at the bottom of every printed page, even when

Currently, I am utilizing spatie/browsershot to generate PDF documents within a Laravel project. While it offers convenient methods such as headerHtml and footerHtml for customization, there seems to be an issue with handling images. Specifically, only bas ...

Maintaining checked items in their original state while searching for another one in ion-searchbar can be achieved by properly handling

My goal is to maintain the checked items as checked when searching for another item in ion-searchbar. While I have managed to keep the checked items, the checkmark icon does not stay checked. What I aim for is to retain the checked state of all food items ...

iOS devices do not support the add/removeClass function

This code functions properly on desktop browsers, but encounters issues when used on iPhones. Furthermore, the script mentioned below seems to be causing problems specifically on iPhone devices. var $event = ($ua.match(/(iPod|iPhone|iPad)/i)) ? "touchstar ...

Inputting Information into a MySQL Database Using an HTML Form

Hey everyone! I have a simple web form that is supposed to input data into a MySQL database. I wrote some code to check if the connection to my database was working, and it seemed fine. However, when I submitted the form, no data was actually entered into ...

Efficiently shrink column width in Material-UI's <TableRow/> using ReactJS and Material-UI

At the moment, I am utilizing ReactJS along with Material-UI. One issue I am encountering is that when using Material-UI's <Table>, the columns' width are automatically set based on content which results in all columns having equal width. H ...

Tips for hiding website content on larger screens

Is there a way to hide website content on screen sizes over 1600px and display only a message image instead? ...

Should the header include individual CSS and JS files, or should all code be contained within a single CSS and JS file?

As I work on optimizing my website, I find myself juggling multiple plugins that include jQuery plugins with CSS along with my own JavaScript code. Currently, the CSS is spread across separate files for each plugin I have downloaded. When needed on a page ...

Executing a .sh script upon loading a webpage

Is there a way to automatically run a .sh file on webpage load to fetch a JSON file using cURL, without making it visible? I need to keep the API key confidential. ...

What techniques can I implement to optimize the speed of this feature in JavaScript?

I have developed a feature that highlights any text within a <p> tag in red based on a user-specified keyword. The current implementation works well, but it is slow when dealing with over 1000 lines of <p>. Is there a faster way to achieve this ...

Achieving a layered effect: Bootstrap Navbar on Carousel

Currently, I am designing a mockup and aiming to create a full-screen carousel with the navigation bar links positioned on top of the images. At the moment, the navbar appears transparent until I scroll down the image/slider making it full screen. How can ...

The system considers the resource as a script, yet it was transmitted with the MIME type of text

I am encountering an issue when trying to integrate AngularJS/JavaScript into my HTML document. Each time I try to load my index.html file, the following error message appears: Resource interpreted as Script but transferred with MIME type text/html: "http ...