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

The Archive Base Latest Questions

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

My main content area overlaps the header (sandy brown) and I am trying to

  • 0

My main content area overlaps the header (sandy brown) and I am trying to accomplish a drop shadow around the white content area.

I have four images that make up that content area: the top, the bottom, the part that tiles with the sandy brown background for 99px (notice the white space in the img) and the part that tiles the rest with the white background to match the background of the rest of the page.

The problem I am having is when I tile the background image that includes the sandy brown color and the background image that contains the white. As you can see in the image attached, I want the text to move up.

The way I have my html setup:

<div id="main-content">

 <div id="content-header"></div>
 <div id="content-header-tile"></div>
 <div id="content">

  <div id="content-body">
   <p>Text here</p>
  </div>

 </div>
</div>

I imagine along the way I could cut down on how many div’s I use

CSS for those div’s

#main-content {
margin-top:-120px;
margin-right:auto;
margin-left:auto;
height:500px;
width:960px;
background: url('..img/content_bg.png') repeat-y top left;
}

/* top of box, with drop shadow img */
#content-header {
height:11px;
background: #fff url('../img/content_header_bg.png') top left;
width:960px;
}

/* tiles bg img with same sandy brown color as the header above, for 99px */
#content-header-tile {
background: #fff url('../img/content_header_tile_bg.png') repeat-y top left;
width:960px;
height:99px;
}

/* begins tiling after 99px (after the div above is done tiling) */
#content {
background: #fff url('../img/content_white_tile_bg.png') repeat-y top left;
width:960px;
}

/* like #content-header, but this displays the bottom piece of the box */
#content-footer {
height:12px;
width:960px;
background: #fff url('../img/content_footer_bg.png') no-repeat top left;
}

enter image description here

  • 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-30T06:25:34+00:00Added an answer on May 30, 2026 at 6:25 am

    This rule:

      #main-content {margin-top:-120px;}
    

    Is what moves your white box ontop of the lighter top box, but doesn’t get you past the fact that you have two divs within #main-content (#content-header and #content-header-title) adding up to 120px in height.

    I believe this will get you closer:

    #content-body {margin-top:-120px;}
    

    Have you considered though, just using css box shadows?
    http://css-tricks.com/snippets/css/css-box-shadow/

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

Sidebar

Related Questions

I have a sidebar that is floated left, and then a main content area
I have a main content area div that has a border. Inside this area
I have a page with a JQM listview as the main content. Then another
I'm keeping the main content area of the webpage small, so that footer navigation
In Wikispaces, when you add a Table of Contents to the Main Content area,
Is there a standard max for the width of the main content area of
In the main content area of a wordpress page I'm using a php include
I have a simple web page that has 3 tabs in my main content
Right now, I have blog posts being generated as nodes in my main content
I'm having trouble trying to place my active anchor tab over the main content

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.