Created
July 25, 2012 11:45
-
-
Save afraser/3175706 to your computer and use it in GitHub Desktop.
ribbon banner
This file contains hidden or 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
/** | |
* ribbon banner | |
*/ | |
body{ | |
background: #333; | |
padding: 35px 0 0; | |
position: relative; | |
} | |
.ribbon { | |
position:relative; | |
width: 241px; | |
margin: 0 auto; | |
} | |
.ribbon:before { | |
content: ""; | |
margin-top:0.5em; | |
float: left; | |
border:1.5em solid #FFF; | |
border-left: 20px solid transparent; | |
} | |
.ribbon:after { | |
content: ""; | |
margin-top:0.5em; | |
/*float: left;*/ | |
position: absolute; | |
right: 0; | |
border:1.5em solid #fff; | |
border-right: 20px solid transparent; | |
} | |
.ribbon span { | |
background:#fff; | |
display:inline-block; | |
line-height:3em; | |
padding:0 2em; | |
position:absolute; | |
} | |
.ribbon span:before { | |
content: ""; | |
position:absolute; | |
top:3em; | |
left:0; | |
border-right:0.5em solid #CCC; | |
border-bottom:0.5em solid #fff; | |
} | |
.ribbon span:after { | |
content: ""; | |
position:absolute; | |
top:3em; | |
right:0; | |
border-left:0.5em solid #CCC; | |
border-bottom:0.5em solid #fff; | |
} |
This file contains hidden or 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
<div class='ribbon'> | |
<span>Example Text</span> | |
</div> |
This file contains hidden or 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-vertical","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