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

The outputstring encountered an issue with the HTML class

Struggling a bit with php, I'm trying to incorporate a basic comment system that accesses and writes to a comments.php file. Everything is functioning well until I attempt to style the $outputstring. Here's the code in question: $outputstring ...

Divs Stacked and Centered

I am currently utilizing the card components from Google's Material Design Lite HTML theme, which can be found at . At the moment, my cards are positioned next to each other and aligned to the left side of the page. I am looking to center the cards o ...

Exploring the Functionality of POST in AJAX Requests

I'm facing an issue where the data is not displaying on my page even though I am using a Github URL and Ajax POST. Can anyone help me identify what needs to be fixed in the code below? <div id="content"> </div> window.onload = ...

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 ...

Prevent clicks from passing through the transparent header-div onto bootstrap buttons

I have a webpage built with AngularJS and Bootstrap. It's currently in beta and available online in (German and): teacher.scool.cool simply click on "test anmelden" navigate to the next page using the menu This webpage features a fixed transparent ...

Tips for creating a subclass using jQuery

I am familiar with selecting the class "myClass" using $(".myClass"), but my question is how do I select the child link within an element with the class "myClass" using jQuery? Here is a sample of the code: <a href=#>Home</a> <div class ...

What is the reason behind genNewColor function's malfunction?

I'm having trouble with this code that is supposed to generate a random color. The CSS formatting works perfectly, but I suspect there might be an issue with the function itself. When I try to run the code, it doesn't produce any error messages â ...

The Django form isn't displaying properly after being imported into the HTML file

Can anyone help me figure out why my Django form isn't appearing in my HTML template? I've tried everything on this site and nothing seems to work. Any suggestions? views.py def handleForm(request): context = {} if request.method == &apo ...

Limit Range of jQuery UI Slider Button

How can I modify the jQuery UI slider range to keep the button within the slider div and prevent it from overlapping as shown in the screenshots below? ...

What is the best way to select the initial descendant that matches a specific

How can we target only the first matching descendant element, without affecting others further down the hierarchy? For example: If the HTML structure is like this: <div class="wrapper"> <table> <tbody> <tr> < ...

Implementing MVC3 Razor Stylesheet within a designated section

I am currently working with MVC3 using Razor. I have set up my website with a standard structure, including a small backend section. Within this backend area, I would like to create a folder specifically for storing "content" such as stylesheets and JavaSc ...

Transforming nested JSON files into nested jQuery divs

Is it possible to iterate through two JSON files that have a parent-child relationship based on simple ID primary and foreign keys? Can we then display the data in a list of divs with the following characteristics: Hierarchical - child divs should only a ...

How to position the navigation bar to the right using bootstrap

I have been experimenting with moving the navigation bar to the right side of the screen in bootstrap4 by using float: right; on the nav a element, but it doesn't seem to be having any effect. I am developing my project using a codepen app. Here is t ...

What is the method for adding/removing the 'hidden' attribute within a <p hidden> element

What is the best way to toggle the visibility of 'hidden' in the element <p hidden>My Text</p>? I attempted removing the attribute and setting it to false, but unfortunately, neither method seemed to work. let paragraphElements = d ...

Autofill Dropdown in AngularJS Using Data from Previous Page

Despite searching extensively on StackOverFlow, I was unable to find the answer I needed. So, I am posting my question below. I have a form that includes a dropdown menu. When a user clicks a button, they are taken to a new HTML page with additional infor ...

Ensure advertisements are easily accessible and not visible to screen-reading tools

I oversee the management of numerous ads on a website. My goal is to enhance their accessibility, and though I have been doing research, there seems to be limited information available on how to achieve this effectively. While I continue my investigation, ...

Is the CSS content-visibility property compatible with background images?

Can CSS content-visibility and contain-intrinsic-size also be used with the background-image property, or do they only work with IMG tags? Will either of these properties have any impact on the following code snippet? <span id="image"> #i ...

What is the best way to ensure a bottom tooltip stays perfectly aligned with the right edge of its corresponding element?

Currently, I am trying to implement a tooltip above my progress bar. However, the small tooltip that I have is not functioning correctly... This is how it currently appears: https://i.sstatic.net/ZJUyT.png I need the tooltip to display above the white d ...

Is it possible to customize the arrow on a drop-down menu?

Here is an example of the page I am facing issues with: If you look at the right side of the bottom bar, you will notice a selection option for different themes. I have been attempting to replace the down arrow with an image. Below is the code I have used ...

Correcting the 1 pixel spacing issue in 3 containers each with a width of 33.333%

It is difficult to articulate, but I am noticing a 1 pixel line with 3 containers each having a width of 33.3333%. Unfortunately, this is not something I can change as it is part of the material-ui framework. <div class="container"> <div clas ...