Created
January 23, 2012 09:48
-
-
Save saji89/1662113 to your computer and use it in GitHub Desktop.
Pointed Corner using css border only
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<p class="test-div"> | |
<span class="price"> | |
Rs.5.00 | |
</span> | |
</p> | |
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment