Footer obscures content above it

Currently, I am encountering an issue with my jQuery menu slide where my footer is causing some problems.

Whenever I zoom in, the footer ends up overlapping all of my other content. This results in a situation where if the website is viewed on a smaller resolution, not all of the content is visible.

I have attempted to remove the position absolute property, but then the footer just moves to the top of the screen.

It is crucial for me to have the footer consistently positioned under my content, regardless of the height of the content itself.

Is it feasible to achieve this with the current script that I am using?

Website:

#footer { 
  /* Footer container (full browser width) */
  background-image:url(../images/footer_bg.jpg);
  bottom: 0;
  position:absolute;
  width: 100%;
  height:85px;
  padding-top:10px;
  padding-bottom: 5px;
}
#footer_box { 
  /* Centered footer container with padding for proper alignment of content */
  width: 820px;
  height:30px;
  margin:0px auto;
  position: relative;
  padding:0px 10px 0px 10px;
}
#footercontent {
  width: 360px;
  height: 30px;
  float: left;
  padding: 0px;
}
#footerimg {
  width: 100px;
  height: 30px;
  margin: 0px;
  float: left;
}
#footerimg p {
  float: right;
  margin: 38px 0px 0px 0px; !important;
}

Answer №1

Based on your question, it seems like you are looking for a footer that doesn't stay stuck to the bottom of the page.

The issue lies in the use of position:absolute and bottom:0. These CSS properties instruct the footer to always remain at the bottom of the browser window, even when other content extends past it. As a result, the footer ends up covering the lower part of the webpage as you scroll down. Removing these CSS styles will resolve this problem. If the footer is placed at the end of your HTML document, it will naturally be positioned at the bottom without remaining fixed to the browser window. This means that you may need to scroll to see the footer instead of it staying visible at all times. You can check out this website for an example of a footer that behaves in the way you described.

Answer №2

I must mention that the markup you have used is subpar. To achieve your desired outcome, consider implementing the sticky footer method.

Here is a helpful resource:

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

Achieve full height of parent with rotated text

Hey, I've been experimenting with some CSS transforms and I'm having trouble getting this to work properly. Check it out here I'm using Bootstrap 4 to create two columns; an image on the left and text on the right. I want the text to be ce ...

relocate the figcaption below the image on mobile devices

Currently, I am in the process of updating an old website to make it responsive, and I have encountered several challenges along the way. My goal is to have the fig captions displayed on the right side in the desktop version, but underneath the figure in ...

Endless Google Locations Instances

My database entries are being displayed in a table using input fields. I want the Location field for each entry to be automatically completed using Google's API. HTML: <input name="edit_airplane[1][location]" type="text" class="airplane_location" ...

Alter the drag direction of the dragulaInput boxes

Yesterday, I had a question about changing the size and color of the badge and text in dragulaInput. Now, I'm wondering how to change the boxes vertically on the right side and left side. I came across <div style="display: grid; grid-column-g ...

Employ the JQuery Datepicker functionality to enhance the user experience

Is it possible to integrate jQuery Datepicker into a web page that includes an iframe? And where is the optimal placement for linking the CSS and script references? ...

Having trouble with the jQuery each function's functionality

I am creating circular counters for surveys by generating a counter for each answer option. Currently, I am utilizing this "plugin": Issue: The problem lies in the plugin not fetching the text value from the <div> element and failing to draw coun ...

Using a <div> to contain <mat-card> in Angular Material

Can you achieve the following: Show components with specified width in a row instead of the usual column layout Enclose the cards within another defined container I've been attempting to accomplish this but without success so far.... While materia ...

Contrast arrays and eliminate values that do not match

$scope.territories = [ { name : "One"}, { name : "Two"}, { name : "Three"}, { name : "India"}, { name : "Japan"}, { name : "China"} ]; $scope.tempTerritories = [ { name : "One"}, { name : "Two"}, { name : "global"}, ]; ...

Bottom Div in a Bootstrap 4 Carousel

I'm currently attempting to add a div containing 4 fontawesome icons at the bottom of a bootstrap 4 carousel. However, I am facing an issue where the div is positioned right next to the menu button. My goal is to achieve a layout similar to this: http ...

Utilizing jQuery to trigger a method in an ASCX page

There is a method to call a page function using jquery with the code below: $.ajax({ type: "POST", url: "Default.aspx/GetDate", data: "{}", contentType: "application/json; charset=utf-8", dataType: "json", success: function(msg) { // Repla ...

Tips for adjusting the alignment of the Vuetify component "VDatePicker" based on the position of its parent component on the screen

Currently, I am utilizing the VMenu component from Vuetify which contains another Vuetify component called VDatePicker. The issue arises when clicking on a text field triggers the appearance of the calendar (VDatePicker). Normally, the VDatePicker componen ...

Adjust the height of the image slider to match the smallest image

Currently, my responsive image slider is using . The height of the slider is being set to match the height of the largest image. However, I would like it to instead be the height of the smallest image and cut off any excess for images that are larger than ...

Is the Slick slider failing to load slides when the number of slides to show is the same as the total number

My project was running smoothly with the slick slider until I encountered an issue. When the slidesToShow property is set to be equal to the total number of slides, the slider fails to display the slides properly. Here's a snapshot of how it currently ...

What is the process for saving appends to variables and converting them to PHP for storage in a database?

<html> <head> <meta charset="utf-8"> <title>Test page for Query YQL</title> <link rel="stylesheet" href="http://hail2u.github.io/css/natural.css"> <!--[if lt IE 9]><script src="http://hail2u.github.io ...

Issue with displaying the Bootstrap-select DropDownList

Within my web application, I have a bootstrap-select combobox that I populate with data using an ajax call. Html: <div class="row"> <select id="selectGemeente1" class="selectpicker" data-live-search="true"></select> </div> Ajax ca ...

"Refine Your Grid with a Pinterest-Inspired

I've set up a grid of images in columns similar to Pinterest that I would like to filter. The images vary in height but all have the same width. The issue arises when a taller image is followed by a shorter one, causing the short image to float right ...

jQuery alert displaying outdated information instead of the latest information

I'm facing an issue with a jQuery pop-up functionality. I have content that loads via Ajax, and I want this content to display as a pop-up message when a link is clicked. The first time I click the pop-up link, the correct content is shown. However, a ...

What techniques can be used to create logos that adapt and transform seamlessly as the screen size varies?

The way Responsive Logos adjust their image width when you resize the browser is truly impressive. It seems like they are using SVG images, but I'm not entirely sure how they are able to make the image change dynamically. Could it be through the CSS c ...

jQuery Remote Validation Rule with Custom Success Message

I have successfully implemented JQuery validation in my registration form, however I have encountered a slight issue. Currently, if an email already exists, an error message is displayed. What I would like to do is modify it so that when the email is avail ...

What is the best way to display three unique maps simultaneously on separate views?

In this scenario, I have incorporated three separate divs and my goal is to integrate three maps into them. The javascript function that controls this process is as follows: function initialize() { var map_canvas1 = document.getElementById('map_canva ...