Created
July 28, 2011 22:56
-
-
Save JamieLottering/1112765 to your computer and use it in GitHub Desktop.
Horizontal Ribbon Shape
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
.ribbon { | |
border-color: #cc0000 transparent #cc0000 transparent; | |
border-style: solid; | |
border-width: 16px; | |
color: #fff; | |
position: relative; | |
text-align: center; | |
width: 250px; | |
} | |
.ribbon:before { | |
background-color: red; | |
border-top: 5px solid #eee; | |
content: ""; | |
height: 42px; | |
left: 0; | |
margin: 0 10%; | |
position: absolute; | |
top: -16px; | |
width: 80%; | |
} |
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
<div class="ribbon"></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment