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

The Archive Base Latest Questions

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

I have a site design that uses background images and textures as a feature

  • 0

I have a site design that uses background images and textures as a feature of the site.

See background design concept here: http://www.flickr.com/photos/54233587@N03/6145240784/in/photostream

The background is intended to work like this:

The page background has a tiled pattern (or on some pages there will be solid background colour).

The top part of the background is overlayed with a background image. The background image is a large image (2000px wide) and needs to be centred in the window. Depending on the page, the height of the image will crop from the bottom (that is, on one page the image may need to be 400px, while on others it may be 450px). This background image also has a CSS3 box-shadow applied so there is a slight shadow at the bottom of the image. This background image cannot use a fixed position – that is, it should move with the page if it is scrolled.

All other page content sits on top of the background in a centered div, indicated by the black box in the screenshot.

I have tried to achieve this by targeting the HTML5 html node for the tiled background.

html {
    background: url(../img/pegboard.jpg) repeat center;
}

Then, for the overlaying background image I’ve been using a div element to insert an image.

<div id="bgimage"><img src="mybgimage.jpb"></div>

Then styling the img to try and center, not be fixed when scrolling, and resize the div to crop image from bottom. All without much success.

Thanks.

  • 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-25T15:37:30+00:00Added an answer on May 25, 2026 at 3:37 pm

    I would do something like this.

    HTML:

    <div id="bgimage"></div>
    <div id="content">
       Actual content goes here.
    </div>
    

    CSS:

    body {
        background: url(../img/pegboard.jpg) repeat center;
    }
    #bgimage {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        background: url(../img/mybgimage.jpg) no-repeat center;
        height: 400px;
        box-shadow: 0 5px 5px -5px #000;
    }
    #content{
        margin: 0 auto;
        width: 960px;
        height: 1000px;
        background: #000;
        filter: alpha(opacity=50);
        opacity: 0.5;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a design that uses colors to identify sections of the site. I
I'm setting up a Magento site and have some design requirements that we can't
Information: I have a site that has a design on index.php, and then you
For example I have site http://localhost/site In IIS I set that 404 error causes
I have a website that uses float/clear method for having a 3 columns design
I have a site design I am working on for a bookkeeping service: http://digitaldemo.net/vintage/home.html
I have an object oriented framework that uses a page design, where each page
Lets say I have a simple ecommerce site that sells 100 different t-shirt designs.
I have implemented a GoogleMapsV3 map in a twitterBootstrap basic responsive design site. But
I have site which uses $(selector).load(path) function in more than 300 pages. Now my

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.