Tell me more ×
Code Review Stack Exchange is a question and answer site for peer programmer code reviews. It's 100% free, no registration required.

This is my site

If you scroll to the bottom, you will notice that there is a big gap between the bottom of the content and the blue footer. The bird is supposed to be behind the content, but it still needs to be attached to the footer so that when the accordion expands, the bird expands with it. Did that make sense? I tried adding a negative margin, but that made the accordion act up.

share|improve this question
This belongs on Stack Overflow – druciferre Jul 19 '12 at 3:30
As @druciferre, says this is off-topic here. But before asking on Stack Overflow, please narrow down the question to the minimal problematic portion. – Winston Ewert Jul 19 '12 at 4:49

closed as off topic by Winston Ewert Jul 19 '12 at 4:48

Questions on Code Review Stack Exchange are expected to relate to code review request within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

1 Answer

This is happening because you have the bird in a separate <div> from the content. If you want the bird to be behind the content, you need nest the accordion inside a <div> with the bird background applied to it. Here's what you need to do...

Instead of this

<div class="wrapper">
...
</div>
<div id="bottom-graphic-container"></div>

Do this

<div id="bottom-graphic-container">
    <div class="wrapper">
    ...
    </div>
</div>

And then you also need to remove the height:...; property of your bottom-graphic-container style.

#bottom-graphic-container {
    margin:0;
    padding:0;
    background:#fff url(../images/bg-bottom.jpg) bottom left no-repeat;
}

I tested this on my PC and it works.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.