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 9148715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:20:59+00:00 2026-06-17T11:20:59+00:00

My page looks like this <div id=wrapper> <div id=header></div> <div id=main></div> </div> The header

  • 0

My page looks like this

<div id="wrapper">
    <div id="header"></div>
    <div id="main"></div>
</div>

The header has a fixed height.
The main div has a background-image.

I want the main div to be displayed to fill the whole screen, so that the image is displayed at the very bottom.

So I did:

div#main {
    background-repeat: repeat-x;
    background-position: left bottom;
    background-image: url(url);

    height:100%;
    min-height:100%;
}

This didn’t work, how can I set a divs height to fill the whole screen?

Another solution would be to set the image to the body:

body {
    background-repeat: repeat-x;
    background-position: left bottom;
    background-image: url(url);
} 

Here I got the problem, that on scroll the image is not fixed at the bottom. It actually fixed to the height of the windows size.

background-attachment: fixed; isn’t the solution either, because the background-image doesn’t scroll at all.


Clarification

When the content is too large => There is a scroll bar, the background-image isn’t fixed at the bottom anymore. That’s the main problem. It’s just the background-color of the body


@AndreaLigios

This is what I mean:

enter image description here

SOURCE

Check it out at http://themelandia.ilijatovilo.ch
Resize the window until the content is larger, and then scroll down.
Hopefully you’ll see what I mean then.

  • 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-06-17T11:21:01+00:00Added an answer on June 17, 2026 at 11:21 am

    EDIT: final solution based on your site:

    add

    overflow: auto;
    position: fixed;
    

    to your div#wrapper rule.


    EDIT:

    New solution: http://jsfiddle.net/SxPyW/2/

    added top: 0; , padding-top: 100px; and z-index: 1;


    Do you mean this ?

    Demo: http://jsfiddle.net/SxPyW/

    With absolute positioning, but with image scrolling up when scrolling the page (not the fixed behavior) ?

    #main {  
       /* ... your stuff... */
        border: 2px solid blue;
        position: absolute;
        top: 100px;
        bottom: 0;
        left: 0;
    }
    

    (borders inserted to show boundaries, they overlap each other here, if you need borders adjust the top attribute accordingly)

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

Sidebar

Related Questions

I have an HTML page that roughly looks like this: <div id=rolesRollerBody style=height: 309px;>
I'm using nested pages in Jquery Mobile: Looks like this: // wrap page <div
My page looks like this: http://ink-12.terc.edu/index.cfm I want to get the picture (kids' drawings)
Lets assume my html page looks like this: <div itemscope itemtype=http://schema.org/videoObject> <span itemprop=name>My Video
so my contact page looks like this <?php include 'header.php'; foreach($_POST as $key =>
My html code looks like this: A wrapper div (percent width, floated left) containing:
I created a new ASP.NET MVC application. The home page looks like this: I
I have a page that looks like this: Head and body tags... <form runat=server>
I have a select box on a classic ASP page which looks like this:
This is how my web page looks like: PosisionDataView is a web user control,

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.