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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:50:37+00:00 2026-05-25T01:50:37+00:00

SOLVED I used the solution proposed by Roman below, based on adding an additional

  • 0

SOLVED
I used the solution proposed by Roman below, based on adding an additional DIV with position:absolute, I tested it in IE7, IE8, IE9, Chrome and Firefox and seems to work fine!

So the layout now has 3 full background images (what I needed), and even you can use the BODY bg taking care of that will be cutted off to the browser’s viewport height (still could be useful in some cases), “three and and a half” bg images with “sticky footer” 🙂

The only drawback I found its that the links in the #footerContent were not “clickable”, I solved it using position:relative to this container.

I made the changes to the sample I provided and uploaded it to my Dropbox, In the case that someone else could find it usefull.
Thank you all for your answers.
http://dl.dropbox.com/u/512412/html_stackoverflow_solution.rar


I uploaded

I’m building a quite complex layout for a website where I need to have 3 background images covering the background of the web page. So I have one in the HTML style, one in the BODY style, and the final one in a DIV that it’s the container for all the webpage elements (#contenedor)

I’m also sing a “Sticky footer” technique, to have the footer “glued” to the bottom of the page whern there are small contents in the “main content” area.

The problem that I have It’s that the BODY bg image gets cut off to the viewport of the web browser, I mean, It doesn’t repeat-y below the visible area displayed when the page is loaded, and the contents are “tall” enough to make the webpage scroll.

What I tried until now:

  1. To add an additional container DIV surrounding all (that’s ok for me), but doing that It brokes the “Sticky footer” (maybe I did not found the right way to do it… I don’t know).

  2. Force the BODY to be as tall as the HTML using:

    html>body {  
    min-height:100%;  
    height:auto;  
    height:100%; }
    

This solves the BODY issue, the image repeats but this also breaks the “Sticky footer”… 🙁

You can see a sample:
Index with “small contents” all OK… footer on bottom, etc.
http://carloscabo.com/bg/index.htm

Index page with tall contents (simple BRs), scroll down to see the cut on the BODY bg Image
http://carloscabo.com/bg/index_tall.htm

You can also download all the files of this sample in the following URL to do your own local test.
http://carloscabo.com/bg/stackoverflow_html.zip

  • 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-25T01:50:37+00:00Added an answer on May 25, 2026 at 1:50 am

    For a reason I don’t quite catch, it seems that the body is stuck with a height of 100% of the viewport. It refuses to grow past this point, and does not inherit the real height of the whole page.

    However, if you don’t mind to add another helper div, you can easily solve the problem.

    First lets start with the html:
    – Add a helper div before the head section.

    <div id="contenedor">
    
        <!--HELPER DIV GOES HERE: BACKGROUND FIX-->
        <div id="bgfix"></div>
    
        <header id="arriba">
            ...
        </header><!--header#arriba-->
    
        ...
    
    <div class="push"><!--Sticky Footer Push--></div>
    </div><!--contenedor-->
    

    And now let’s modify the CSS:
    – Remove the background from the body, and put it into the new helper div like so.

    body {
        height:100%;
        min-height:100%
        text-align:center;
    //  background:url(../img/bg_body.png) center top repeat-y;
        color:#fff;
    }
    
    #contenedor {
        position:relative; /* For #bgfix to attach here */
        ...
    }
    
    #bgfix {
        background:url(../img/bg_body.png) center top repeat-y;
        position: absolute;
        width: 100%; height: 100%;
        z-index:-1;
    }
    

    And VOILA!
    Hope it helps!!!

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

Sidebar

Related Questions

Update: Solved, with code I got it working, see my answer below for the
Problem solved: Thanks guys, see my answer below. I have a website running in
edit #2: Question solved halfways. Look below As a follow-up question, does anyone know
Edit: I have solved this by myself. See my answer below I have set
(Nearly solved, but not quite) (My temporary solution is to use a void method
I solved this myself, but I spent so long discovering such a simple solution,
Solved: Workable solution: sbi's answer Explanation for what really happens: Hans's answer Explanation for
I've used recursion quite a lot during my many years of programming to solve
SOLVED: Nevermind, the links were visited, and the border definition was missing for visited
Edit : Solved, there was a trigger with a loop on the table (read

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.