Skip to content

Instantly share code, notes, and snippets.

@dziudek
Created August 3, 2012 22:06
Show Gist options
  • Save dziudek/3251984 to your computer and use it in GitHub Desktop.
Save dziudek/3251984 to your computer and use it in GitHub Desktop.
CSS arrow
/**
* CSS arrow
*/
body {
background: #4546da;
}
.arrow {
background: #fff;
border-radius: 14px;
height: 25px;
margin: 50px 0;
position: relative;
width: 100px;
}
.arrow:after,
.arrow:before {
background: #fff;
border-radius: 15px;
content: "";
display: block;
height: 25px;
position: absolute;
right: 0;
transform: rotate(45deg);
transform-origin: 81% 45%;
width: 60px;
}
.arrow:after {
transform: rotate(-45deg);
}
<!-- content to be placed inside <body>…</body> -->
<div class="arrow"></div>
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment