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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:51:57+00:00 2026-06-05T02:51:57+00:00

How could I wrap a border around another border and have them both use

  • 0

How could I wrap a border around another border and have them both use inset drop-shadows (like double matting in a picture frame)?

  • 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-05T02:51:58+00:00Added an answer on June 5, 2026 at 2:51 am

    You can accomplish this using the :before and :after pseudo-elements. See jsFiddle demos at end of answer.

    HTML

    <div class="frame"><img src="../img/logo.png"></div>
    

    CSS

    .frame {
        display:inline-block;
        position:relative;
        margin:20px;
        z-index:5;
        padding:10px;
        background:#376b90;
    }
    .frame:before {
        position:absolute;
        content:".";
        display:block;
        font-size:0;
        color:transparent;
        /* Change left, right, top, bottom, and box-shadow to position */
        left:0;
        top:0;
        right:0;
        bottom:0;
        box-shadow:inset 0 0 3px 2px black;
    }
    .frame:after {
        position:absolute;
        content:".";
        display:block;
        font-size:0;
        color:transparent;
        /* Change left, right, top, bottom, and box-shadow to position */
        left:5px;
        top:5px;
        right:5px;
        bottom:5px;
        box-shadow:inset 0 0 3px 2px black;
    }
    

    Example Usage

    • Both shadows outside
    • One shadow inside, one shadow outside
    • Both shadows inside
    • Two inset shadows, one outset shadow, and custom background – Requested by OP
    • Inset borders – Replicating https://stackoverflow.com/a/10904061/526741
    • Variable length content
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need a div with a border to wrap around arbitrarily sized fixed-width content
So I wanted to have a TextView with a cool border around it. I
Could anyone please help me writing a regex that I will use to validate
I would like to use something like typedef in my C++ programs to enhance
I have a subclass baz, which needs to be included in both foo and
In one of our project, we would like to have a calendar control that
I've been trying to wrap my head around this the whole day... Basically, I
OK, so I have a play field of 512x512 which wraps around, -32 becomes
Could somebody explain to me why the following is wrong : $sql='SELECT * FROM
Could someone help me to figure out with dependency property system in WPF?! I

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.