Created
July 3, 2014 11:56
-
-
Save anonymous/14b96ed75d595a97c383 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
.container { | |
width: 400px; | |
} | |
.padded-multiline-wrapper { | |
font-size: 1em; | |
line-height: 1.4; | |
padding: 2px 0; | |
border-left: 20px solid #3A44BE; | |
position: relative; | |
} | |
.padded-multiline-wrapper .padded-multiline { | |
background-color: #3A44BE; | |
padding: 4px 0; | |
color: #fff; | |
display: inline; | |
margin: 0; | |
border-bottom: 5px #FFE000 solid; | |
position: relative; | |
} | |
.padded-multiline-wrapper:after { | |
content: ""; | |
width: 20px; | |
background-color: #FFE000; | |
height: 5px; | |
position: absolute; | |
bottom: -5px; | |
left: -20px; | |
} | |
.padded-multiline-wrapper .padded-multiline .padded-multiline-content { | |
position: relative; | |
left: -10px; | |
} |
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="container"> | |
<div class="padded-multiline-wrapper"> | |
<span class="padded-multiline"><span class="padded-multiline-content">How do I add padding to subsequent</span></span> | |
</div> | |
<br><hr><br> | |
<div class="padded-multiline-wrapper"> | |
<span class="padded-multiline"><span class="padded-multiline-content">How do I add pad ding to blub and so on and so on bla bla bla</span></span> | |
</div> | |
<br><hr><br> | |
<div class="padded-multiline-wrapper"> | |
<span class="padded-multiline"><span class="padded-multiline-content">How do I add padding to subsequent blub and so on and so on bla bla bla</span></span> | |
</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
// alert('Hello world!'); |
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","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