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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:07:11+00:00 2026-05-24T16:07:11+00:00

To clarify, I made the following diagram: Basically I have a bordered div, which

  • 0

To clarify, I made the following diagram:

diagram

Basically I have a bordered div, which is clickable. After clicking it, I want to (through javascript) create a new div which has a protruding arrow shaped border into the clicked div.

Any ideas as to how I would create such a border? I’m not worried about the javascript. Just how to actually create such a border.

  • 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-05-24T16:07:11+00:00Added an answer on May 24, 2026 at 4:07 pm

    I tried to make it as close to your drawing beautiful diagram as possible, but I wasn’t quite able to get the arrow’s hrm… unique angle.

    http://jsfiddle.net/WJtnM/

    HTML

    <div id="b"> <span class="g">BEFORE CLICK</span>&nbsp; 
        <div id="f"> AFTER CLICK </div>
        <div class="c" id="d"></div>
        <div class="c" id="e"></div>
    </div>
    

    CSS

    #b
    {
        position:relative;
        padding:28px 20px 12px 60px;
        width:170px;
        border:1px solid black;
    }
    .c
    {
        position:absolute;
        bottom:100%;
        right:30px;
    
        width:0px;
        height:0px;
        border: 20px solid transparent;
    }
    .c#d
    {
        border-bottom-color: black;
    }
    .c#e
    {
        border-bottom-color: white;
        margin-bottom: -1px;
    }
    
    #f
    {
        position:absolute;
        padding:35px 20px 12px 60px;
        width:170px;
        border:1px solid black;
        border-bottom-width: 0px;
        bottom:100%;
        left:-1px;
    }
    

    jQuery

    $("#b").click(function(){
    
        $(".c,#f,.g").toggle();
    
    })
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Lets clarify my question, I want to make an element which the element contains
When I try to call a URL as a pop-up window through JavaScript, after
I wanted to clarify an assumption that I have made, regarding the functionality of
To clarify, I currently have a live app that does not implement in app
I have a text file with the following characteristics: every line has at least
I have been following the book provided by the agile toolkit and am at
I have made a custom trackbar control, mostly as an exercise. I know i
Lets say I have the following 2 tables in a database: [Movies] (Scheme: Automatic)
can someone plese clarify how to set width for an html document. i have
I just made the move to version control the other day, and after a

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.