The footer stops short of reaching the very bottom of the page

My footer is not reaching the bottom of the page as intended. I have shared my code on a JS Fiddle for others to review:

http://jsfiddle.net/q2pd5/

To truly see the issue, visit the actual webpage: or view the full screen result on the JS Fiddle.

Clearly, there is a gap beneath the footer that I am unsure why it exists.

Although I have implemented clearing techniques for floats, the issue persists.

I attempted using a sticky footer solution as recommended in other questions, but that did not solve the problem.

From what I can tell, this issue occurs on all browsers.

Answer №1

Here's a little tip for your CSS:

Add the following to your #footer selector:
overflow: hidden

This simple trick is often forgotten, but it can be quite useful. By using overflow: hidden, your div will adjust its vertical size based on its contents.

Answer №2

The floats of the lists in the footer need to be cleared. Check out this resource on how to properly clear them: Learn more here. Use overflow: hidden; on the footer like shown below:


#footer {
    overflow: hidden;
}

Answer №3

It appears that your footer is experiencing clearance issues. To resolve this, consider using a clearfix technique as demonstrated below:

#footer:before, #footer:after {
    content: "";
    display: table;
}
#footer:after {
    clear: both;
}

#footer {
    zoom:1; /* ie fix */
}

Answer №4

The bottom section of the page is set to have a height of 200 pixels, causing the background image to be cut off. In reality, the bottom section extends all the way down to the bottom of the screen, but the last item in the list cannot be seen due to white text on a white background.

To solve this issue, simply removing the height: 200px rule alone doesn't work; it just cuts off part of the bottom section. You also need to remove the overflow: hidden and then everything displays correctly.

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

Employing inline styling to give list bullets a unique color compared to the list items

Using an internal CSS style sheet to define styles for <ol> and <li> elements has been efficient. However, I recently encountered a situation where I need to use inline styling to achieve the desired effect. Specifically, I want the list elemen ...

Is there a way to create interconnections in all the HTML code I produce, without needing to use

Here is the code I am currently using. Strangely, everything below MSN.com turns into a link. I have double-checked my CSS and suspect that the issue lies there. However, I wanted to first explore if there might be an underlying problem in the HTML side of ...

Using an HTML file as the source for an image in the <img src=""> tag is a simple process that can greatly enhance the visual appeal of your webpage

My goal is to utilize an html file as the source for an image file within the <img src=""> tag in order to prevent mixed-content warnings when using an http image over https. For instance: index.html: <img src="./image.html" > image.htm ...

Utilize Bootstrap's empty field validation for various other validation purposes

After downloading a bootstrap theme for my website, I noticed an elegant validation feature for required fields. When a field is left empty, a red exclamation mark appears behind the input, and hovering over it reveals the error message inside the field. ...

Ways to Utilize CSS for Substituting Text

Is there a way to change Type: to Class: using CSS? <span class="skills">Type:<a href="....../type/aaa/">aaa</a>, <a href="...../type/bbb/">bbb</a></span> ...

Providing data from a javascript xml file upon page initialization

I am aiming to extract multiple values from an XML file as soon as an HTML page is loaded. The XML file remains constant and will not change over time. It will be stored in the same directory as the HTML page. The purpose of this XML file is to fill severa ...

What is the proper method for navigating down a webpage after clicking a hyperlink?

I'm currently developing this webpage. When I click on the "state" (e.g. CA), I expect the page to slide down and display the results. Currently, the results are showing up but without any sliding effect. ...

The Navbar-Burger in Bulma is not linking to menu items properly in Vue.js 2

I have been working on implementing a navbar for my application using Vue 2.0 and Bulma. Everything seems to be working fine on desktop screens, but on smaller screens, the burger icon appears without any elements displayed. It's just there. <temp ...

The background image of the div appears above the top menu

I am encountering a small bug in my code where everything looks fine on desktop, but when I switch to mobile screen, the layout bugs out and displays before another div class. On desktop, everything looks fine. I want to create a menu like this Here is t ...

Passing PHP Variables to Multiple Pages

I seem to be facing a bit of a challenge. I am successfully sending the variable c_prot to the page parsing.php. However, I also need to send this same variable to the page chart.php, but it doesn't quite work as expected. If you have encountered a si ...

What is the best way to eliminate HTML unicode content from the final item in a continuously changing list?

li:after{ content:"\00b6"; } <ol> <li>banana</li> <li>orange</li> <li class="last-class">apple</li> </ol> I am currently working on a dynamic list where the number of <li> tags varies over t ...

Transform the <span> element into a calendar for selecting dates

This is the HTML view of my GUI https://i.sstatic.net/F0sxH.png and below is my actual HTML code: <div class="row"> <div class="col-md-5" style="padding: 35px;"> <span style="font-size: 16px;">Fr ...

Necessary Selection from Dropdown

I've created a contact form with both optional and required fields. One of the mandatory fields is a drop-down menu, which looks like this: <div> <select name="favFruit[]" size="1" required> <option value="apple">Apple&l ...

Utilizing a div element for creating a clipping mask with CSS

I am facing a challenge with a background image that has been set to background-size:cover; and a series of overlaid divs that I would like to convert into separate clipping masks. I have explored the clip: rect(20px, 20px, 20px, 20px,) feature, but since ...

What is the process for displaying the save file dialog in Safari?

I'm struggling with generating a PDF and saving it as a file in Safari using an Angular app and DocRaptor. I've tried various methods from Stack Overflow, but none seem to trigger the save file dialog. Instead, they either open the file in the cu ...

What is the reason behind H1 tags not requiring a class or ID in CSS?

As I was reviewing my CSS code, I noticed that the h1 tag is defined like this: h1 { .... } Unlike everything else in my code, which either has an id "#" or a "." class preceding it. This made me wonder why header tags don't require this. Could it b ...

Implementing Content-Security-Policy with React and Material-UI v4 for secure styling requirements

Utilizing a React UI with material-ui version 4, the web server is embedded within a JVM application during Production. Following npm build for the UI, the bundle is deployed alongside the server side code. An essential requirement involves implementing C ...

Scale first, then drag and drop to fix a faulty registration

I'm currently working on a project that involves dragging and dropping the correct items onto a technical drawing, such as a motherboard. The user is presented with pictures of components like CPUs or DDR memory and must drag these items to their corr ...

Unable to invoke the jQuery function within CakePHP3

I am having trouble calling the jQuery function mentioned below in my CakePHP3 MVC project. There are no error messages, but nothing seems to be happening. The code is set up so that jQuery gets included automatically. The function I am trying to call sh ...

changing CSS styles

I'm struggling with what seems like a simple issue and can't find a solution anywhere. The HTML element I have is <div class="box"> It originally has this rule in its stylesheet: .box { width: 40%; } My Custom CSS sheet overwrites the o ...