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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:35:32+00:00 2026-06-17T06:35:32+00:00

The border around In Focus and around the box. To put it simple. How

  • 0

The border around “In Focus” and around the box. To put it simple. How do I recreate this on CSS. Taken from theatlantic.com.

enter image description here

  • 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-17T06:35:34+00:00Added an answer on June 17, 2026 at 6:35 am

    Try something like this:

    CSS:

    div.box
    {
        width: 200px;
        height: 120px;
        text-align: center;
        line-height: 120px;
        position: relative;
        background: #CCC;
    }
    
    div.box > span
    {
        display: block;
        position: absolute;
        width: 20px;
        height: 20px;
        top: 0;
        left: 0;
        border-top: 1px solid red;
        border-left: 1px solid red;
    }
    
    div.box > span + span
    {
        top: 0;
        left: 100%;
        border-left: none;
        border-right: 1px solid red;
        margin-left: -20px;
    }
    
    div.box > span + span + span
    {
        top: 100%;
        left: 100%;
        border-top: none;
        border-bottom: 1px solid red;
        margin-top: -20px;
    }
    
    div.box > span + span + span + span
    {
        top: 100%;
        left: 0;
        border-right: none;
        border-left: 1px solid red;
        margin-left: 0;
    }
    

    HTML:

    <div class="box">
        <span></span>
        <span></span>
        <span></span>
        <span></span>
    
        Hello.
    </div>
    

    JSFiddle here.

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

Sidebar

Related Questions

Hi guys i'm trying to create this (image) css border around a div, but
I am trying to make a border around my layout like this But what
I want to create border around my form and also want to put some
I wanted to put a border around a table which has a background image.
I am trying to put a border around it, but i can't. Here is
I only have this problem in chrome. How remove the border around the image?
I want to put a specific border like below around my element. How can
I'm trying to get this blue border (which is around a NSTextFieldCell when you
what's the code to put a border around a UITableViewCell's contentView? (for testing) If
I'm doing this to set a border around input fields: input[type=text], input[type=password], textarea {

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.