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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:13:45+00:00 2026-06-06T01:13:45+00:00

I have a 3 elements stacked on top of each other. The top element

  • 0

I have a 3 elements stacked on top of each other. The top element is the overlay content. The second element is a background border image. The bottom element is a background.

What I want to do is hollow out the middle element, so that I can see through the top element into the bottom element, but leave the border of the middle element surrounding the top element.

http://jsbin.com/unimux/4/edit

As you can see the middle element is blocking the view to the bottom element.

Edit: I did try using border-image but it wouldn’t render correctly for me with border-radius.

Edit2: is it possible to get the desired effect with border-image? Kudos to anyone who can make it look not terrible with border-image.

Edit3: Some progress based on Zuul’s answer:
http://jsbin.com/unimux/15/edit

  • 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-06T01:13:47+00:00Added an answer on June 6, 2026 at 1:13 am

    Setup a new element, with a class, e.g., .apple and place it over all other existent elements with the same image as the bottom one:

    See your JS Bin Example Altered!

      div.apple {
        margin: 100px;
        width: 200px;
        height: 200px;
        background: url(http://www.ipadwallpapersonly.com/images/wallpapers/1gk0rv4ng.jpg) center center;
      }
    

    Having the image centred and by give a correct margin value, it simulates the “hollow” effect at the div.middle.

    See the result preview:

    End Result Preview


    If the elements dimensions aren’t the same, the use of CSS position helps keepping everything into the proper place:

    An example here!

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

Sidebar

Related Questions

I have three elements stacked into each other. Now I want the innermost element
I want to parse xml files that have elements like these: <element>&amp</element> <element>&amp;</element> But
I have a two stacked listboxes with data(first ListBox contains <10 elements, second may
I have two stacked divs contains child elements and what i want is if
I have a set of input fields that are stacked on top of each
I have elements with class selectElement. When I click on element with that class,
I have some elements as below: <div id=shareswrapper> <div id=41> some content blah blah
Right now, I have elements with different z-index , and I want to group
I'm trying to put some (vertically-stacked) display:block elements within a display:inline-block element. According to
I have elements that I want to choose from, and I want to choose

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.