Last active
August 29, 2015 14:05
-
-
Save gonghao/437415c05de5cd7b54bc 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
| h2 { | |
| font-size: 22px; | |
| } | |
| .inline-block { | |
| font-size: 0; | |
| } | |
| .inline-block > span { | |
| font-size: 14px; | |
| display: inline-block; | |
| width: 200px; | |
| padding: 20px; | |
| background: #ccc; | |
| } | |
| .float-block { | |
| font-size: 14px; | |
| overflow: hidden; | |
| } | |
| .float-block > div { | |
| width: 200px; | |
| padding: 20px; | |
| background: #ccc; | |
| float: left; | |
| } |
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="inline-block"> | |
| <h2>Inline-Block</h2> | |
| <span>1</span> | |
| <span>2</span> | |
| <span>3</span> | |
| </div> | |
| <div class="float-block"> | |
| <h2>Float Block</h2> | |
| <div>1</div> | |
| <div>2</div> | |
| <div>3</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":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment