Last active
November 24, 2016 09:48
-
-
Save voidove/8920f02493cfb7519907c9cade0bf734 to your computer and use it in GitHub Desktop.
margin collapse
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
/** | |
* margin collapse | |
*/ | |
ul { | |
background: red; | |
clear: both; | |
//overflow: hidden; | |
//border: 1px solid; | |
} | |
ul li{ | |
list-style-type: none; | |
width: 40px; | |
height: 20px; | |
background-color: green; | |
margin: 20px; | |
} | |
ul li:last-child { | |
margin-top: 40px; | |
} |
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
<ul> | |
<li>2</li> | |
<li>d</li> | |
<li>d</li> | |
</ul> |
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
// alert('Hello world!'); |
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
{"view":"separate","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