Created
September 26, 2013 15:35
-
-
Save benjohnson/6715920 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
.ico { | |
width:16px; | |
height:16px; | |
background: red; | |
margin-right: 5px; | |
display: inline-block; | |
} | |
.wrapper { | |
width: 200px; | |
margin-bottom: 20px; | |
} | |
.ico-space { | |
position: relative; | |
padding-left: 22px; | |
} | |
.ico-space .ico { | |
position: absolute; | |
top: 0; | |
left: 0; | |
} | |
.floated { | |
overflow: hidden; | |
} | |
.floated .ico, .floated p { | |
float: left; | |
margin: 0; | |
} |
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="wrapper ico-space"> | |
<span class="ico"></span>This is some text that will wrap. This is some text that will wrap. This is some text that will wrap. | |
</div> | |
<div class="wrapper floated"> | |
<span class="ico"></span><p>This is some text that will wrap. This is some text that will wrap. This is some text that will wrap.</p> | |
</div> | |
<div class="wrapper floated"> | |
<span class="ico"></span><p>This is some text.</p> | |
</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-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