bottom-of-the-page footer

I'm trying to keep the footer at the bottom of the page when scrolling down, but it seems to remain fixed in one position. I suspect it may be related to the backstretch plugin written in jQuery, here is my code:

<title>Atec Clima</title>
<script>
    $.backstretch("img/bg.jpg",{speed: 500});
</script>
</head>
<body>

<div class="container">
    <?php require("_header.php");?>
    <div class="page">
        <div class="riquadri">
            <img src="img/home/riscaldamento.jpg" alt="riscaldamento" />
            <p>
                A well-maintained boiler consumes less... saves energy and lasts longer!!<br />
Regularly checked boilers provide safety for the user and the environment.
            <title>Atec Clima</title>
<script>
    $.backstretch("img/bg.jpg",{speed: 500});
</script>
</head>
<body>

<div class="container">
    <?php require("_header.php");?>
    <div class="page">


    </div>

</div>
    <div class="footer">
    </div>
</body>
</html>

body  {
    font-family: UbuntuRegular;
    font-size: 62.8%;
    width: 100%;
    height: 100%;
    background: #fff url(../img/bg.jpg) top center no-repeat;
}
.container {
    width: 1000px; 
    height:100%;
    margin: 0 auto -140px;
    overflow: hidden;
    top: 0;
    bottom: 0;
    left: 0; 
    z-index: 2;
    padding-bottom:140px;
}

.footer{
    background:#1357c6;
    position:absolute;
    bottom:0;
    width:100%;
    height:140px;
}

Answer №1

Encountering this issue is quite typical. A popular and effective cross-browser remedy is provided below:

Learn how to Make the Footer Stay at the Bottom of a Page

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

Issues with navigation functionality in Internet Explorer 8 have been identified in Twitter Bootstrap 3 RC2

I am currently using Twitter Bootstrap 3 RC2 to create a navigation bar at the top of my page, which is working perfectly fine except on IE8. In IE8, it seems like the browser is rendering the page as if it were on a smaller screen, causing the menu to co ...

Updating an element on the page without having to reload the entire page

I have implemented a functionality on my Laravel page where multiple locations can be saved. Now, I am looking to enhance this feature by allowing users to edit and update location data without refreshing the page. Below is the HTML form structure: <for ...

Text obstructed by a sticky sidebar in Bootstrap

Currently, I am utilizing bootstrap to create a webpage featuring an affixed sidebar. However, I have encountered two issues when adjusting the screen size to that of a phone: The sidebar obstructs the text behind it, halting its movement beneath the sid ...

What is the best way to navigate to a specific ID on the homepage using a navigation button on another page?

When a navigation button is clicked on any page other than the home page, I want the home page to load first and then scroll to the corresponding id mentioned in the navlink. Below is the code snippet: <Col sm={5}> <Nav className=& ...

How can I wrap content with the <li> element in a cross-browser compatible way?

I am encountering an issue with the dropdown menu on my website located at . When hovering over elements with a dropdown menu, you may notice that some of the items within the dropdown span more than one line and have varying widths. My goal is to adjust ...

Adjusting jQuery Button Width with input type of "button"

Currently, I am working with jQuery Mobile to develop a straightforward Golf Score Card App. To calculate the total at the end of a form submission, I've implemented the following code. <input id="total" type="text" name="total" value="" readonly= ...

The values appear to be refusing to print

I am currently working on a task that requires me to print out the variable $message (which is specified below). However, I am facing an issue where it is not printing and I am unsure of what the problem might be. I greatly appreciate any help you can prov ...

Create a custom overlay for an image that is centered horizontally and does not have a fixed width

I'm working with this HTML setup: <div class="container"> <img class="image" /> <div class="overlay"> <div class="insides">more content here</div> </div> &l ...

Guide on using CSS to position text around an image

I need to figure out a way to wrap text around an image positioned in the bottom left corner of a CSS table. Since the amount of text may vary each time I use it, I am wondering if there is a solution for this and how I can achieve it? ...

One solitary table is successfully loaded

I am facing an issue with my setup where I have two HTML tables and a PHP file that loads every 1 second through AJAX to pass information to these tables. Here is the HTML structure: <div style='float: left;'> <br><br> & ...

Using a JQuery variable to display a div using the .show() method

I am attempting to use the .show() method to reveal div elements in a slideshow-like manner. My goal is to utilize the ID of a button on my navigation bar to trigger the display of a specific slide similar to how a slideshow operates. For example, if butt ...

Problem encountered when trying to show the Jquery Ajax response on an HTML page

I'm facing a challenge with loading a page that needs to display values with dynamic pagination. To retrieve these values, I am making a REST call which returns a JSON object. Although I can see the JSON output in the browser console, I am unable to d ...

Unusual shift in behavior - <input> on Windows 8.1

Our application is a unique HTML5/WinJS Google Talk app tailored for Windows 8 users. Within our app, we utilize a textarea for chat input with a predefined maximum height. We have coded the height to automatically adjust to the maximum limit once reached. ...

Creating an interactive map using Python with Folium, incorporating a draggable legend and clickable items for users to easily zoom into specific locations

Looking to create an interactive map with python folium package. Need icons for locations and a draggable legend that allows for repositioning by mouse drag. Also need ability to click on legend items to zoom into corresponding locations on the map. Can s ...

Python: Automate clicking on checkboxes with Selenium

Recently, I've encountered a problem and I'm in search of an answer. Below is some HTML code that I need to work with. My goal is to send a snippet of this HTML to selenium so that it can click on a checkbox. However, I don't want to use the ...

Outcome of Request.Form when the input requested is empty

What can I do when Request.Form("myInput") is blank and causes a server error? Any suggestions on how to address this issue? Is there a method to verify if "myInput" has not been populated? ...

Effortlessly glide to a specific div ID upon page load using the URL address

One way to implement smooth scrolling to an anchor on page load is by using jQuery. Here's an example code snippet: $(function(){ $('html, body').animate({ scrollTop: $( $('#anchor1').attr('href') ).offset(). ...

Similar stylesheet produces varying outcomes on browsers other than Chromium

My CSS is producing different outcomes on various browsers, particularly on non-chromium browsers such as Firefox, while the results remain consistent on chromium-based browsers like Google Chrome and Opera. It seems to be a browser compliance issue. How ...

A step-by-step guide on retrieving DOM elements in Selenium after a click event

My goal is to use Selenium to retrieve the HTML of a page after clicking on a link. However, I encountered a challenge as simply downloading the link did not work in this case. When the link is clicked, some obfuscated Javascript is triggered which loads d ...

Creating a Border Length Animation Effect for Button Hover in Material-UI

I'm currently exploring Material-UI and trying to customize a component. My goal is to add a 'Border Length Animation' effect when hovering over the button. Unfortunately, I have yet to successfully implement this animation as intended. For ...