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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:58:13+00:00 2026-05-11T08:58:13+00:00

I am trying to create a CSS layout where the page looks like it’s

  • 0

I am trying to create a CSS layout where the page looks like it’s in the middle of the forest. There is a left and right div with the background trees, some header divs that show the top of the page with various wildlife, and some footer divs that show the bottom with more wildlife that matches up with the left and right div background images, all of which is positioned using ‘position: fixed’ in CSS.

Then there is content in the middle that is positioned normally and scrollable. That all works fine.

The problem I’m having is that the background forest layout is fixed at 1204×768 but of course some web browser windows may not be that large. Unfortunately while the content will scroll as intended, the fixed position elements will never be shown if they are outside the size of the browser window. Clearly not acceptable.

I’ve tried setting overflow: scroll and height: 768 on the .body and .html elements in the stylesheet but no luck.

Note that I am positioning everything with top: and left: values in the CSS. I know I could get around this by using bottom: and right: but the problem is that the footer images wouldn’t line up.

This may just not be possible in which case I’ll have to rework the graphic design, but if it is possible I’d love to know how!

  • 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. 2026-05-11T08:58:14+00:00Added an answer on May 11, 2026 at 8:58 am

    of course some web browser windows may not be that large

    Or indeed that small! The likelihood of the browser window actually being exactly the right size to put your decorations on the edges is quite small; that’s always the problem with fixed layout.

    I know I could get around this by using bottom: and right: but the problem is that the footer images wouldn’t line up.

    Yes, designing images that can alter their joins in response to page size changes is more work, but it’s doable. You would have to export the ‘bird+foliage’ layer and the ‘squirrel+foliage’ layer as standalone transparent images, then lay them over the top of a longer side image.

    To make the object edges nice and smooth would require PNG’s 8-bit transparency, which would necessitate a PNG-rendering hack for IE6. Not the end of the world though.

    Unfortunately while the content will scroll as intended, the fixed position elements will never be shown

    Is that a problem? They are only decorational in nature.

    I’ve tried setting overflow: scroll and height: 768 on the .body and .html elements

    For this approach you would need to set ‘overflow: auto; height: 768px;’ on a wrapper <div> which holds both your #sidebar-left and your #content.

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

Sidebar

Ask A Question

Stats

  • Questions 150k
  • Answers 150k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer It's a bug in Doxygen 1.5.5-1.5.9 that is claimed to… May 12, 2026 at 9:45 am
  • Editorial Team
    Editorial Team added an answer Casts are irrelevant, it's the (possibly implicit) prototype that matters.… May 12, 2026 at 9:44 am
  • Editorial Team
    Editorial Team added an answer I wanted something a bit more baked into the framework… May 12, 2026 at 9:44 am

Related Questions

I am trying to create a CSS layout where the page looks like it's
I am trying to layout a header for a web site and I would
I'm new to rails and am trying to work out how to get nested
I'm creating a CSS editor and am trying to create a regular expression that
I am trying to create a rather simple effect on a set of images.

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.