The contact form is encroaching on the footer

The issue arises when the contact form overlaps with the footer. When testing the code on Codepen, the styles are correctly linked and working for everything except the contact form. I have attempted adjusting the padding, bottom position, etc., but nothing seems to resolve the problem.

Does anyone notice any errors in the code? Any suggestions on how to rectify this issue?

<!-- second container-->
<div class="container-fluid" id="jumbotron2">              
    <div class="row">               
        <div class="col-lg-12">               
            <div class="card-deck">
                <div class="card text-center mb-3">
                    <div class="card-body text-dark">
                        <h1 class="card-title text-warning">Web Services</h1><br>
                        <p class="card-text"> I make custom websites tailored to your needs for 
  the following:
                        <ul class="text-left">
                            <li>E-commerce</li> 
                            <li>Social media sites</li>  
                            <li>Blog sites</li> 
                            <li>Online business brochures</li> 
                            <li>Self-employed and</li>  
                            <li>Companies</li> 
                        </ul>
                        <!-- 
                            <a href="website.html" role="button"class="btn btn-warning">more information</a 
                         -->
                     </div>
                 </div>
                 <div class="card text-center mb-3">
                     <div class="card-body text-dark">
                         <h2 class="card-title text-warning">IT distance support</h2><br>
                         <p class="card-text">
                            Virtual machines and servers, active directory, windows server 2012
                            <ul class="text-left">
                                <li>Create & manage user accounts</li>
                                <li>Group policy management</li>
                                <li>Install and configure</li>
                                <li>Manager server roles</li>
                                <li>Manage server shares</li>
                            </ul>
                            <br><br>
                            <!-- 
                                <a href="re-design.html" role="button" class="btn btn-warning">more information</a> 
                            -->   
                        </div>
                    </div>
                    <div class="card text-center mb-3">
                        <div class="card-body text-dark">
                            <h2 class="card-title text-warning">Web Hosting</h2><br>
                            <p class="card-text">
                                Hosting your website live on the internet
                                <br>
                                <br>
                                <ul class="text-left">
                                    <li>Reasonably priced hosting packages</li>
                                    <li>guaranteed 99% uptime</li>
                                    <li>fast page loading</li>
                                    <li>unlimited storage</li>
                                </ul>

                                <!--
                                    <a href="hosting.html" role="button" class="btn btn-warning">more 
  information</a>    
                                -->
                            </div>
                        </div>
                    </div>   
                </div>
            </div>
        </div>  
        <!-- contact form -->
        <div class="container" id="contact">
            <script src='https://www.google.com/recaptcha/api.js'> 
        </script>
        <div class="form-row">      
            <div class="col-md-6 col-md-offset-3">
                <h2>Contact me for a free quote</h2> 
                <p> Send your message in the form below and i will get back 
 to you as soon as possible. </p>
                <br>          
                <p>Choose from the following :</p>
                <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" 
 name="inlineRadioOptions1" id="inlineRadio1" value="">
                    <label class="form-check-label" 
 for="inlineRadio1">New Website</label>
                </div>
                <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" 
 name="inlineRadioOptions1" id="inlineRadio2" value="">
                    <label class="form-check-label" 
 for="inlineRadio2">IT Support</label>
                </div>
                <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" 
 name="inlineRadioOptions1" id="inlineRadio3" value="">
                    <label class="form-check-label" 
 for="inlineRadio3">Website Hosting</label>
                </div>
                <form role="form" method="post">
                    <div class="form-group">
                        <label for="name"> Name:</label>
                        <input type="text" class="form-control" id="name" 
  name="name" required maxlength="50">
                    </div>
                    <div class="form-group">
                        <label for="name"> address:</label>
                        <input type="text" class="form-control" id="address" 
  name="address" required maxlength="50">
                    </div>
                    <div class="form-group">
                        <label for="name"> phone:</label>
                        <input type="text" class="form-control" id="phone" 
 name="phone" required maxlength="50">
                    </div>
                    <div class="form-group">
                        <label for="email"> Email:</label>
                        <input type="email" class="form-control" id="email" 
 name="email" required maxlength="50">
                    </div>
                    <div class="form-group">
                        <label for="name"> Message:</label>     <!--removed 
 type="textarea"-->
                        <textarea class="form-control" name="message" 
id="message" placeholder="Your Message Here" maxlength="6000" rows="7"> 
</textarea>
                    </div>
                    <div class="g-recaptcha" data- 
  sitekey=""></div>
                    <button type="submit" class="btn btn-lg btn-warning 
   pull-right" id="btnContactUs">Post It! &rarr;</button>
                </form>
                <div id="success_message" style="width:100%; height:100%; 
   display:none; "> <h3>Sent your message successfully!</h3> </div>
                <div id="error_message" style="width:100%; height:100%; 
   display:none; "> <h3>Error</h3> Sorry there was an error sending your 
 form. 
  </div>
            </div>
        </div>
    </div>

  #jumbotron  {           
    padding-top: 50px;
    height: 100px;
  }

  #jumbotron2 {               
   padding-top: 150px;
   height: 300px;
   margin-bottom: 250px;
   }

  #contact {                    
  padding-top: 250px;
  height: 500px;
  margin-bottom: 250px; 
  }

Answer №1

It is advisable to eliminate the fixed height that has been specified in the class #contact {.....} displayed below, as it causes a clash with the inner content. Alternatively, you can include 'overflow: hidden' to resolve this issue.

#jumbotron {
  padding-top: 50px;
  height: 100px;
}

#jumbotron2 {
  padding-top: 150px;
  height: 300px;
  margin-bottom: 250px;
}

#contact {
  padding-top: 250px;
  /* height: 500px; */
  /* It is recommended to remove this fixed height from the container as it overlaps the inner content or add 'overflow: hidden' to it. */
  margin-bottom: 250px;
}

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

Incorporate a variable into a CSS class

Currently, I am working on developing a component that creates an animation loop with a duration that is passed as a prop to the component. The issue I am facing involves using CSS to create the animation: animate:{ -webkit-transition: 10.0s !important ...

The Date Picker pops up automatically upon opening the page but this feature is only available on IE10

There seems to be an issue with the date picker opening automatically on IE10, while it works fine in Firefox where it only appears when you click on the associated text box. Does anyone have insight into why this might be happening specifically in IE10? ...

Obtain data attributes using JQuery's click event handler

I'm facing an issue with a div structure setup as follows: <div class='bar'> <div class='contents'> <div class='element' data-big='join'>JOIN ME</div> <div class=& ...

What is the best way to navigate back to the top of the page once a link has been clicked?

One issue I'm facing is that whenever I click on a link in NextJS, it directs me to the middle of the page: <Link href={`/products/${id}`} key={id}> <a> {/* other components */} </a> </Link> I believe the problem l ...

Testing a feature in Angular that modifies a variable

Trying to test a function that updates a Boolean variable has been causing some confusion for me. The strange thing is, even though the function seems to be called successfully when using the toHaveBeenCalled method, the variable itself never actually gets ...

Ways to Randomly Flip Divs

I have developed an application where all divs flip vertically on hover. I am looking for a way to make the flipping random without requiring a hover. Any ideas on how to achieve this? .vertical.flip-container { position: relative; float: left; ma ...

Sending checkbox selections to JavaScript

I am currently exploring Angular by working on a chat application project. My main focus right now is on passing checkbox values to my JS code. I have included snippets of the code below. The issue I'm encountering is that I can't seem to retriev ...

Transferring an HTML file to a destination stream

Currently, I'm in the process of constructing a proxy server. One of the tasks I'm tackling involves blocking specific URLs. I have developed a simple HTML page that is supposed to display whenever a blocked URL is requested, but unfortunately, ...

Pattern matching for replacing <a> tags

As a beginner in the world of regular expressions, I am eager to learn more about it. Currently, my goal is to extract only the inner text from an HTML tag and remove the surrounding tags. For example: Original: Lorem ipsum <a href="http://www.google.e ...

How can a loading bar be shown while a PHP page is loading?

I currently have an HTML form that directs to a PHP file upon submission. The PHP file takes some time to load due to background processes running, so I am interested in implementing a progress bar or alert to indicate when the file is fully loaded. Does ...

Is it necessary to download and install plotly if I am using the cdn in my HTML file?

I'm currently developing an online application using Flask. The user input is collected with d3.js and sent to app.py, where it is used for an API call to retrieve the necessary data. This data is then returned in JSON format to JavaScript for renderi ...

The NPM Install process seems to be skipping certain files that were successfully installed in the past

When I first installed NPM Install in a folder, it created multiple folders and files: node_modules public src .DS_Store package.json package-lock.json webpack.config.js After that, npm start functioned perfectly. Now, as I embark on a new project for th ...

Using Javascript to extract formatted text from a webpage and save it to the clipboard

I've developed a straightforward tool for employees to customize their company email signature. The tool generates text with specific styling, including bold fonts and a touch of color - nothing too extravagant. When I manually copy and paste the styl ...

Playing with background hues

Can anyone help me with this issue? I've been attempting to change the background color using jQuery upon document load, but it doesn't seem to be working. Any thoughts on what I might be doing wrong? http://jsfiddle.net/KczZd/2/ HTML: <d ...

What is the best way to access and display the innerText of elements that have been removed using console

When I call the updateCartTotal() function, my goal is to display in the console the items that have been removed from the shopping cart. Every time I click on the remove button, I want it to show the item and the price. However, instead of displaying the ...

Is the "position: sticky" feature functioning correctly, or is there a slight vibrating or dancing effect when users scroll through the Ionic app? How can we eliminate this issue specifically on iOS

Looking for suggestions on this problem - the position sticky is functioning correctly, but there seems to be a slight vibration or dancing effect when users scroll in the Ionic app. Any ideas on how to eliminate this issue specifically on iOS devices? & ...

Compiling Nextjs with Tailwind typically takes anywhere from 8 to 16 seconds

My first time using tailwind has resulted in slow compilation times when used with nextjs in development mode. The slowdown can be confirmed by simply removing the following code: @tailwind base; @tailwind components; @tailwind utilities; This significan ...

Tips for integrating a "datetime" picker in your AngularJS application

Currently working on an AngularJS application. The single page has a date input that needs to be added. Date Input <input type="date" ng-model="InputDate" /> Any suggestions on how to accomplish this task? ...

Extract hidden form variables using a function in PHP

Here is the JavaScript function that I have written: function GetCellValues() { var rows = document.getElementsByTagName('tr'); var str = ''; for (var c = 1 ; c < rows.length ; c++) { str += '\n&apo ...

Struggling to Send Data and Generate a Calculated Value with Django

Hello, I am currently in the process of learning Django as a beginner. I have written some code that allows me to input data, but for some reason, I cannot successfully POST it to the database. I'm not quite sure where I've made an error. Model ...