Created
August 28, 2012 14:12
-
-
Save benjohnson/3498357 to your computer and use it in GitHub Desktop.
Untitled
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
.box { display: inline-block; position: relative;} | |
.box-inner { | |
background: #35b5d0; | |
font-family: helvetica; | |
color: #FFF; | |
margin-left: 22px; | |
padding: 0 10px; | |
line-height: 2em; } | |
.box-ribbon { | |
position: absolute; | |
left: 0; | |
top: 0; | |
border: 1em solid #35b5d0; | |
border-left-color: transparent; | |
width: 0; | |
height: 0; | |
} | |
.box-ribbon2 { | |
position: absolute; | |
right: 0; | |
bottom: -10px; | |
border: 5px solid #009abc; | |
border-right-color: transparent; | |
border-bottom-color: transparent; | |
width: 0; | |
height: 0; | |
} | |
.constrain { | |
width: 160px; | |
} |
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="box"> | |
<div class="box-ribbon"></div> | |
<div class="box-inner">kjhdjfkdjsnrksjdowndjskdjeifng</div> | |
<div class="box-ribbon2"></div> | |
</div> | |
<br><br> | |
<div class="constrain"> | |
<div class="box"> | |
<div class="box-ribbon"></div> | |
<div class="box-inner">this one is way over the limit of stuff into the end zone</div> | |
<div class="box-ribbon2"></div> | |
</div> | |
</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":"110","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment