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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:20:33+00:00 2026-06-15T04:20:33+00:00

What is the way to make a div(or another element) with border, «stiched» to

  • 0

What is the way to make a div(or another element) with border, «stiched» to the outer borders of objects inside that div?

For example: example

  • 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-15T04:20:34+00:00Added an answer on June 15, 2026 at 4:20 am

    If you want to do it only with css and without any javascript plugin, you could do it with a lot of work, like following for example :
    Demo

    HTML

    <div id="main">
        <div class="red"><div class="content">Red</div></div>
        <div class="green"><div class="content">Green</div></div>
        <div class="blue"><div class="content">Blue</div></div>
        <div class="black"><div class="content">Black</div></div>
    </div>
    

    CSS

    #main {position:relative;}
    .black, .red, .blue, .green {
        position:absolute;
        border:3px dotted #000;
        background:#FFF;
        z-index:10;
    }
    .content {position:relative;margin:10px;}
    .black {top:300px;left:103px;z-index:9;}
    .black .content {height:180px;width:280px;background:#000;}
    .blue{ top:50px;left:200px;border-bottom:none;}
    .blue .content {height:30px;width:30px;background:#009;}
    .red{top:0px;left:0px;}
    .red .content {height:280px;width:80px;background:#F00;}
    .green{top:100px;left:103px;border-left:none;border-bottom:none;}
    .green .content{height:180px;width:180px;background:#070;}
    

    ​
    ​Here you need to set the position of each element and their sizes, then you have to adjust for each the display of each superimposed border.

    It’s a little bit ugly, but that’s working…

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

Sidebar

Related Questions

I have an element that isn't clickable at first, but I'd like to make
I put down an example below that I have trouble with: <div class=text1>Text 1</div>
I want to make it so that a whole div is clickable and links
I am trying to make a webpage that uses a moving div that slowly
I'm trying to make an intelligent way to copy HTML from one element to
I have a div that is a link to another page. When someone hovers
In a given container, I have a bunch of links with another element inside
I want to swap both references, is there a nice way make such a
Any way to make train() run with custom train/test partitions of the data? I'm
Any way to make a OS X Finder like but valid XHTML/CSS search textfield

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.