A slight gap can be seen between the footer and the bottom of the page

body, html {
  font-family: 'Asap', sans-serif; 
  text-align: center;
  padding: 0px;
  margin: 0px;
  
}

body {
  background-image: url("../Images/firepit2.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover; 
}

a {
  text-decoration: none;
  color: #000;
}

a:link {
  text-decoration: none;
  color: #000;
}

a:visited {
  
}

a:hover {
  font-weight: bold;
}

a:active {
  
}

#Logo {
  font-size: 3em;
  font-style: italic;
  background-color: #064501; /* Dark Woodrow Green */
  padding: 20px;
  margin-top: 0px;
  margin-bottom: 0px;
}

#Navigation {
  list-style: none;
  margin-top: 0px;
  background-color: rgba(255, 255, 255, .65);
  padding: 10px;
}

#Navigation li {
  display: inline; 
  padding-left: 5px;
  padding-right: 5px;
}

#Navigation li a {
  text-decoration: none;
  color: #000;
}

#Wrapper {
  width: 50%;
  margin: 0px auto;
  margin-top: 90px;
  background-color: rgba(255, 255, 255, .65);
  padding-top: 10px;
  padding-right: 30px;
  padding-bottom: 10px;
  padding-left: 30px;
  border-radius: 40px;
}

#Greeting {
  border-bottom: 1px solid;
  padding-bottom: 20px;
}

#Wrapper p {
  line-height: 1.1em; 
  margin-top: 26px;
  text-align: center;
}

footer {
  background-color: #064501; /* Dark Woodrow Green */
  margin-top: 90px;
  font-style: italic;
}

footer p {
  float: left; 
}

footer ul {
  float: right; 
}

footer ul li {
  display: inline;
}

footer::after {
  display: block;
  content: '';
  clear: both;
}

#Copyright {
  margin-left: 25px;
  padding-top: 10px;
  padding-bottom: 10px;
}

#Contact {
  margin-right: 25px; 
  padding-top: 10px;
  padding-bottom: 10px;
}

#Contact li {
  padding-left: 3px;
  padding-right: 3px;
}
<!DOCTYPE html>
<html lang="en">
<head>
  <title>Woodrow Lawn and Turf</title>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <meta name="keywords" content="">
  <meta name="description" content="">
  <link rel="stylesheet" href="../CSS/index.css">
  <link href="https://fonts.googleapis.com/css?family=Asap:400,400i,500,500i,700,700i" rel="stylesheet"> 
</head>
<!-- DEVELOPER NOTES -->
  <!--

    - Keywords and description meta are still subject to change by the client.
    - Make sure to add correct target attributes and file paths to the nav links.
    - All images used in this mockup are subject to copyright currently.
    - Make sure to add alternate font families to the font-family style. (2 only)
    - Fix non-colored area below the footer.

  -->
<body>
  <header>
    <h1 id="Logo">Woodrow Lawn and Turf</h1>
    <nav>
      <ul id="Navigation">
        <li><a href="index.html">About Us</a></li>
        <li>|</li>
        <li><a href="#">Lawn Stuff</a></li>
        <li>|</li>
        <li><a href="#">Dirt Stuff</a></li>
        <li>|</li>
        <li><a href="#">Flower Bed Stuff</a></li>
        <li>|</li>
        <li><a href="#">Patio Stuff</a></li>
        <li>|</li>
        <li><a href="#">Firepit Stuff</a></li>
        <li>|</li>
        <li><a href="#">Commercial and Business Stuff</a></li>
      </ul>
    </nav>
  </header>
  <div id="Wrapper">
    <h1 id="Greeting">Welcome!</h1>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore... 

This particular query has been addressed countless times, however, despite attempting several common solutions, I have yet to see any positive outcomes. There is a slight gap between the footer and the bottom of the page that reveals the background, and the cause of this issue remains unknown to me. UPDATE: Strangely, it appears that the space has vanished or somehow resolved itself. Perhaps just a quirk of the browsers.

Answer №1

It seems like the issue has been identified and is related to a margin leaking out from div#Footer due to collapsing margins in CSS. One solution could be to add a 1px pixel padding or a transparent 1px border to contain the footer tag margin.

If you want to remove the margin completely, you can simply do so by adding the following CSS:

#Footer > div {
margin-top: 0;
}

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

CSS transformation on the go

Can anyone help me? I am trying to create an animation for a hamburger menu when checked and unchecked. I have managed to animate the menu, but I'm struggling with animating the left menu when transforming it to 0. &__menu { transform: transla ...

Updating URL Encoding in Java

Searching for a solution to replace character encodings in URL's has been challenging. Outdated libraries and answers found on the internet have not provided a working solution so far. import java.io.*; import java.util.*; public class Chapter6 { pu ...

Prevent css from reverting to its original rotation position

I attempted to style the navigation list with the following CSS: #navlist:hover #left-arrow { border-top: 10px solid white; position: relative; transform: translateX(120.2px) rotate(180deg); } Would it be better to use jQuery for the rotation ...

Encountering a problem with updating a specific data attribute through an ajax

My goal is to retrieve data using ajax and update an attribute in a div called data-used. However, I am encountering an issue where the attribute does not change and the console displays the following error message: TypeError: "#powerv1".data is not a f ...

Is it possible to create HTML tables without including paragraphs within the cells using docutils rst2html?

If my input rst file looks like this: +--------------------------------+ | Table H1 | +-------------+------------------+ | Table H2a | Table H2b | +=============+==================+ | a1 | b1 | +------ ...

Alter the uploaded picture and subsequently send the revised image through an HTML form

Currently, I am working on an HTML form that includes a file input for accepting images. My goal is to take the uploaded image from the user and make some modifications using JavaScript before submitting the modified version instead of the original one. I ...

Achieve a multi-column layout on a webpage by ensuring two HTML elements remain on the same line

Trying to tackle this CSS challenge, but it's definitely been a head-scratcher for me. I'm aiming to place two elements on the same line: Textbox Search icon image The search icon should maintain its size regardless of width, while the textbo ...

Incorporating two different gulp tasks into a default configuration

I am encountering a challenge with my gulp 'default' task, which is designed to clean a folder before proceeding with the minification of CSS and JS files. The issue arises when I try to ensure that the 'clean' task runs only once per d ...

Verify if uploading a photo is necessary

Here is my approach to ensuring that a file is added before it can be uploaded: <script type="text/javascript> function check(){ var elm = document.getElementById("hello-world"); if (elm.value.length > 0){ alert("Hey"); re ...

Angular: Creating an input field with preset value that is immutable

I am a beginner with angular and I have been working on this code snippet: <mat-form-field appearance="outline" class="col-30" id="mat-identifier"> <mat-label> {{'columns.dashboard.identifier' | ...

Learn how to troubleshoot and resolve a bug in the mobile Chrome browser that pertains to the position fixed feature

On the mobile version of Firefox, everything works perfectly. However, there seems to be a bug in Chrome with the fixed positioning. When scrolling, the header should change from absolute to fixed and the height should go from 65 to 35 pixels. Unfortunatel ...

Eliminate HTML TAG entries from the input form

My issue is that when I try to type a comma, it does not allow me to do so. How can I add other characters like <, >, /, \, etc? $("#in1").keypress(function (evt) { if (String.fromCharCode(evt.which) == ",") return false; }); < ...

When attempting to execute a script that includes document.write, it will not function as expected

Our web program is utilizing ajax and jquery, specifically Netsuite. I've been attempting to adjust elements on a page using document.ready and window.load methods in order to load an external script onto the page. Regardless of whether I load this ex ...

How to stop form submission when Enter key is pressed in Angular

Despite scouring stackoverflow for answers, none of the solutions have worked for me. I have tried various approaches, which I will outline below: <form (keydown.enter)="$event.preventDefault()" ...> <button (keyup.enter)="skillsHandleEnter($eve ...

The issue of unselection not functioning properly for multiple items when using both selectable and draggable features

i need the unselection of list items to be as smooth as selectable() but without draggable() My desired outcome is similar to the following gif showcasing combined selectable and draggable functionality: https://i.stack.imgur.com/3GjTD.gif here's t ...

Having trouble with integrating the Bootstrap Carousel in an Angular 2+ environment

I am currently working with Bootstrap 3.3.7 and Angular 4 for a project. My challenge lies in displaying multiple images in a Bootstrap Carousel, with the aim of showing three images per slide. However, I am encountering an issue where all the images are b ...

Inject EJS Template String into Express CSS File to Customize Background Image of an HTML Element

I have successfully configured a css file for my Express ejs web app. All the styles are displaying correctly, paths are accurate, and everything is working perfectly. Within one of my ejs files, the structure looks like this: <%- include ("partials/h ...

I'm having trouble inserting my object into the scene: THREE.Object3D.add: the item is not a valid instance of THREE.Object3D

Recently, I started using three.js. Initially, I utilized a JSON file for my 3D model but encountered issues when exporting it from Blender. To resolve this, I decided to switch to obj files. Although the new obj model is working fine, I am struggling with ...

Expanding and collapsing accordion using jQuery to handle dynamic data

I am trying to implement functionality where I have dynamic data and when I click on a button, an accordion opens and closes. The challenge is that only one accordion should be open at a time, closing any previously opened accordions. Currently, my scrip ...

PHP function count() usage may result in a warning message

I am currently developing a basic CRUD single page application with PHP connected to an msqli database. Everything on the page is functioning properly, except for the "EDIT" function. I keep receiving an error message that says "count(): Parameter must be ...