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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:46:06+00:00 2026-06-11T05:46:06+00:00

I’m working on a design that has some image based shadows (can’t use CSS3

  • 0

I’m working on a design that has some image based shadows (can’t use CSS3 as they’re not simple shadows) on the content area, which needs to be flexible vertically.

The design has a white content area, with a shadow in the top right edge, a shadow on the bottom right corner and all the way along the bottom edge as you can see on the site.

In order to try and do this I’ve created a wrapper to try and deal with the top shadow, and then applied the background image to the bottom of the main content area within it to deal with the bottom shadows. I’ve then made the background white. My thinking is that the ‘bottom’ shadow image will always stick to the bottom of the content area no matter how much it expands, and the white colour will handle the rest.

Problem is, the shadow image obviously sits inside the div, and there is no way to make it hang ‘out’ of the container… so as you can see here it looks weird.

JSFiddle of the problem, you can see top shadow looks fine but the bottom one is sitting within the div so get’s coloured in by the background colour too.

I can’t get my head around a solution for this. Essentially that shadow sitting inside the div should be sitting neatly outside it.

HTML for quick reference:

<div id="contentWrapper">
      <div id="content">
            <h1>HTML Ipsum Presents</h1>
            <h2>Content in here</h2>
      </div>
</div>

CSS for wrappers and content areas:

#contentWrapper{
    background-image:url('../img/top-content.png');
    background-position:top right;
    background-repeat: no-repeat;
    width:820px;
    margin-left:200px;
}


#content{
    background-image:url('../img/bottom-content.png');
    background-position: bottom right;
    background-repeat:no-repeat;
    background-color:#FFF;
    width:802px;
}
  • 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-06-11T05:46:07+00:00Added an answer on June 11, 2026 at 5:46 am

    You could use multiple backgrounds:

    #contentWrapper{
        background:url("http://jamesperrett.co.uk/ightham/img/top-content.png") no-repeat right top,
            url('http://jamesperrett.co.uk/ightham/img/bottom-content.png') no-repeat bottom right;
        width:820px;
        margin-left:200px;
    }
    

    Demo: http://jsfiddle.net/Y2dSD/8/

    EDIT:

    To fix the bottom shadow, use

    #contentWrapper{
        background:url("http://jamesperrett.co.uk/ightham/img/top-content.png") no-repeat right top,
            url('http://jamesperrett.co.uk/ightham/img/bottom-content.png') no-repeat bottom right;
        width:820px;
        margin-left:200px;
        padding-bottom: 15px;
    }
    

    Demo: http://jsfiddle.net/Y2dSD/13/


    But that’s CSS3. If you want it to work on old browsers, add a new container:

    HTML:

    <div id="contentWrapper"><div>
          <div id="content">
                <h1>HTML Ipsum Presents</h1>
                <h2>Content in here</h2>
          </div>
    </div></div>
    

    CSS:

    #contentWrapper{
        background:url("http://jamesperrett.co.uk/ightham/img/top-content.png") no-repeat right top;
        width:820px;
        margin-left:200px;
    }
    #contentWrapper>div{
        background:url('http://jamesperrett.co.uk/ightham/img/bottom-content.png') no-repeat bottom right;
        padding-bottom:15px;
    }
    

    Demo: http://jsfiddle.net/Y2dSD/17/

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I've got a string that has curly quotes in it. I'd like to replace
I am doing a simple coin flipping experiment for class that involves flipping a
I need a function that will clean a strings' special characters. I do NOT
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text

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.