Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5974425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:56:29+00:00 2026-05-22T20:56:29+00:00

Is it possible to position a background image at the bottom of the window

  • 0

Is it possible to position a background image at the bottom of the window without extra elements or min-height?

I’m trying to have an image at the bottom of the window, not the body, no matter how short the webpage is.

What I mean is that if a page is longer than the vertical screen resolution, the browser allows you to scroll to the bottom and the image would be at the bottom (footer background).

If the page is very short, maybe half the height of the screen, the footer background will “hang” in mid air. I’m trying to have it so it stays at the bottom of the window.

I’ve tried min-height, but that requires you to set a big enough height to cover the largest resolution that people who visit your site might have in turn creating large empty areas which are still there if you resize down your browser (or if people have smaller screens).

I tried setting the footer background onto the body element, but it hangs. Setting the footer background onto the html element just gave me a white area at the bottom, so I used it for my header background instead.

The basic layout of my website is:

<html>
<body>
<div id="header">other elements and header stuff</div>
<div id="main">main content</div>
<div id="footer">other elements and footer stuff</div>
</body>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T20:56:30+00:00Added an answer on May 22, 2026 at 8:56 pm

    I’d do it like so…

    html {
       min-height: 100%;   
    }
    
    body {
       background: url(path/to/image.png) no-repeat center bottom;   
    }
    

    jsFiddle.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Without using percentages, is it possible to position a background image 2px from the
I'm trying to position content based on certain elements of a background image. I've
I have a CSS background image that is not small and unfortunately I have
I am trying to make the background image I have in CSS turn into
#container{ background:url(images/bg-main.png) repeat-y; width: 903px; background-position: 0px 687px; background-position: bottom; height: 1200px; margin-left: auto;
what i have is this: <style> #main{position:relative; width:600px; height: 600px;} #cover{position:absolute} #image{position:absolute} </style> <div
This is the background image: #logo {background-image:url('logo.png');width:20px;height:23px;} #logo:hover {background-position:0 -23px;-webkit-transition: all 0.5s ease;} #logo
I'm trying to get a background image of a HTML element (body, div, etc.)
Is it possible to change only Y value of background position in CSS? background-position-y
Is it possible to get the position of an element in the body even

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.