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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:51:53+00:00 2026-05-28T05:51:53+00:00

So, I have a layout where I have a repeating transparent shadow element set

  • 0

So, I have a layout where I have a repeating transparent shadow element set to the background of my parent container element. Set atop this, and supposedly hovering over the topmost edge of this background, is supposed to be an image with a frame and drop shadow.

However, because the image frame continues the parent element, the background image also continues upward. This is visible as the vertical lines above the top edge of the frame’s drop shadow. See screenshot below:

Background image shows through dropshadow.

This happens regardless if I use a transparent image or CSS3’s box-shadow property. Setting negative margins doesn’t work to bring it out of the parent element, nor does setting positioning as relative or absolute.

Normally I’d try to "fake" the transparency effect by setting a solid image at the top edge of the image frame, but there’s a repeating stucco pattern set as the body background, which means there’d be a visible, unnatural-looking edge. (Insert cursing re: repeating patterns here.)

Any suggestions how I could prevent a parent element’s background from showing through a child element, or offsetting the image frame somehow?

Many 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-28T05:51:53+00:00Added an answer on May 28, 2026 at 5:51 am

    I figured it out.

    I was modifying the WordPress TwentyEleven theme, which has #primary and #secondary divs as floats atop the main content div. In order to make the background extend all the way to the bottom of the content div (I.e., past the two floats), I had overflow: set to auto.

    Since I don’t need to float anything (It’s one column with no sidebar now), I removed both floats and removed the overflow declaration I had. Tah-dah, totally works now.

    If someone else finds him/herself in this issue, have a look at my jsFiddle, which I used to figure it out. Thanks to Paker for the suggestion.

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

Sidebar

Related Questions

I have a layout similar to this: <div id=...><img src=...></div> and would like to
I have a layout 'profile' <div> <div> $this->action(action1, controller1, module1)<div> <div> $this->layout()->content </div> <div>
I have this layout that works correctly, a relative layout with a text view
alt text http://img705.yfrog.com/img705/1337/layoutxt.jpg I already have this layout created using CSS, but its plagued
Reporting Services 2005 My layout is like this: I have the mainreport which contains
I have this big data-entry sort of page, a table kind of layout using
I'm dynamically generating a layout, and to do this I have a menu_row_element.xml file
I have the following layout and call to that layout. At one point this
Background: I have an MVC layout (master) view which uses @Html.RenderAction to display a
I have a layout which uses min-width and works great. So I came to

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.