Skip to content

Instantly share code, notes, and snippets.

@saji89
Created January 23, 2012 09:48
Show Gist options
  • Save saji89/1662113 to your computer and use it in GitHub Desktop.
Save saji89/1662113 to your computer and use it in GitHub Desktop.
Pointed Corner using css border only
/**
* Pointed Corner using css border only
*/
.test-div {
margin: 24px 100px 0;
}
.test-div .price:before {
border-right: 35px solid #25A0DA;
border-top: 24px solid transparent;
content: "";
display: block;
position: absolute;
right: 100%;
top: 0;
}
.test-div .price {
background-color: #25A0DA;
color: #FFFFFF;
display: inline-block;
margin-left: -2em;
padding: 0 0.5em;
position: relative;
line-height:24px;
font-size:14px;
}
<body>
<p class="test-div">
<span class="price">
Rs.5.00
</span>
</p>
</body>
{"view":"split","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment