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

  • Home
  • SEARCH
  • 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 9240297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:09:53+00:00 2026-06-18T08:09:53+00:00

I need some trick to insert border blank space by using CSS like this..

  • 0

I need some trick to insert border blank space by using CSS like this..

any border blank space trick ? for CSS

I using CSS box-shadow like this

 box-shadow:
        -1px 0px 0px 0px #000,
        0px -1px 0px 0px #000,
        0px 1px 0px 0px #000,
        1px 1px 0px 0px #000

I have no idea how to make border / shadow look like the picture.

I will use only one html element.. <div></div>

Any trick ?

Playground : http://jsfiddle.net/ES66k/

  • 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-18T08:09:53+00:00Added an answer on June 18, 2026 at 8:09 am
    div {
      width:300px;
      height:170px;
      margin:100px;
      position:relative;
    
     background:#ccc;
    
    }
    
    div:before, div:after {
     content:"";
     position:absolute;
     top:0;
     left:0;
    }
    div:before {
        width:280px; /*****-20px*****/
        height:168px; /*****-2px*****/
    
        margin-left:10px;
        border-top:1px solid #f00;
        border-bottom:1px solid #f00;
    }
    div:after {
        width:298px; /*****-2px*****/
        height:150px; /*****-20px*****/
    
        margin-top:10px;
        border-left:1px solid #f00;
        border-right:1px solid #f00;
    }
    

    Demo : http://jsfiddle.net/ES66k/4/

    Done now, Don’t need to set background-color 😀

    But thanks @Fabrizio Calderan anyway 😀

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

Sidebar

Related Questions

Need some help to solve this. I have a gridview and inside the gridview
Need some guidance figuring out what went wrong. I've been using mysql, phpmyadmin for
Need some help with this problem in implementing with XSLT, I had already implemented
Need some help gathering thoughts on this issue. Our team is moving ahead with
Yes, yes, i know user and password. I need some trick in php to
I need some help to understand how can I track the data to insert
I need to tweak UiTextField behavior so that I can programmatically insert some asterisks
I got this variable: $page = (int) $_REQUEST['page']; I need some actions that will
I need some quick advice. I would like to simulate a cellular automata (from
This is just an idea, I don't yet have any code, I need some

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.