Skip to content

Instantly share code, notes, and snippets.

@ctborg
Created May 9, 2012 15:34
Show Gist options
  • Save ctborg/2645596 to your computer and use it in GitHub Desktop.
Save ctborg/2645596 to your computer and use it in GitHub Desktop.
CSS Arrow
.arrow_box {
position: relative;
background: #88b7d5;
border: 4px solid #c2e1f5;
width: 30%;
margin: 40px auto;
text-align: center;
}
.arrow_box:after, .arrow_box:before {
bottom: 100%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
.arrow_box:after {
border-bottom-color: #88b7d5;
border-width: 30px;
left: 50%;
margin-left: -30px;
}
.arrow_box:before {
border-bottom-color: #c2e1f5;
border-width: 36px;
left: 50%;
margin-left: -36px;
}
<div class="arrow_box"><h1 class="logo">css arrow please!</h1></div>
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment