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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:52:39+00:00 2026-06-11T07:52:39+00:00

Using CSS, how can I create a partial border as per image below I

  • 0

Using CSS, how can I create a partial border as per image below

enter image description here

I can get the complete border with:

border: 1px solid #f5f5f5; 

but only want to show maybe 30px at the top and botton of the vertical border with nothing imbetween?

can this be acheived?

Thanks as always,

  • 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-11T07:52:41+00:00Added an answer on June 11, 2026 at 7:52 am

    There is a CSS solution, but it’s complicated and also requires HTML markup:

    #box {
        width: 200px;
        height: 200px;
        margin: 30px;
        position: relative;
    }
    
    #box > div.corner {
        display: block;
        position: absolute;
        width: 50px;
        height: 50px;
    }
    
    .top {
        top: 0px;
        border-top-style: solid;
    }
    
    .bottom {
        bottom: 0px;
        border-bottom-style: solid;
    }
    
    .left {
        left: 0px;
        border-left-style: solid;
    }
    
    .right {
        right: 0px;
        border-right-style: solid;
    }
    
    <div id="box">
        <div class="corner top left"></div>
        <div class="corner top right"></div>
        <div class="content">content</div>
        <div class="corner bottom left"></div>
        <div class="corner bottom right"></div>
    </div>
    

    DEMO

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

Sidebar

Related Questions

I can create this effect using tables and a background image, but would really
it can be done using javascript, but with CSS alone, is it possible to
I'm trying to create flowing content using CSS columns, but I'm running into the
I created an image of what i would like to create using CSS. I
I want to create an arrow using CSS only Example you can see http://jsfiddle.net/b9Yfc/
I wish to create a hover rotation effect using css or javascript but instead
So, I can create an input button with an image using <INPUT type="image" src="/images/Btn.PNG"
How can I create rounded corners using CSS?
How can I create button using pure CSS with a sold background color and
Using css only, how can I override the css of only the 2nd column

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.