Skip to content

Instantly share code, notes, and snippets.

@krschmidt
Last active January 17, 2016 05:40
Show Gist options
  • Save krschmidt/f788d817b091fda51c3a to your computer and use it in GitHub Desktop.
Save krschmidt/f788d817b091fda51c3a to your computer and use it in GitHub Desktop.
Horizontal Curly Brace - works in Chrome 41
.item {
width: 200px;
}
.top {
margin-bottom: -8px;
text-align: center;
}
.borders {
border-bottom: black solid 1px;
border-left: black solid 1px;
border-right: black solid 1px;
height: 8px;
border-bottom-right-radius:8px;
border-bottom-left-radius:8px;
}
.leftcurve {
height:5px;
width: 5px;
border-top:black solid 1px;
border-right: black solid 1px;
border-top-right-radius: 5px;
display: inline-block;
}
.rightcurve {
height: 5px;
width: 5px;
border-top: black solid 1px;
border-left: black solid 1px;
border-top-left-radius: 5px;
display: inline-block;
margin-left: -4px;
}
.arrow {
background-color: white;
top: -7px;
left: 50px;
width:12px;
position: relative;
z-index:50;
}
<div class="item">
<div class="top">Button Text</div>
<div class="borders"></div>
<div class="arrow">
<div class="leftcurve"></div>
<div class="rightcurve"></div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment