.arrow_div{
display:inline-block;
margin-top:30px;
padding:20px;
border:3px solid black;
position:relative; /* This important to give position relative as we will be position arrow relative to this */
}
.arrow_div:after{
content:"" left,right;
border:10px solid transparent; /* this will have no effect */
position:absolute;
border-left:10px solid white; /* important give colors here. this will give the effect :NOTE 1 */
left:100%;
top:10px;
}
.arrow_div:before{
content:"" left,right;
border:13px solid transparent;
position:absolute;
border-left:13px solid black; /* color of the main div and +width of main div's border */
left:100%;
top:7px;
}
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Fiddle Pages
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Get Fiddle Pages with PRO
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.