Created
May 6, 2016 16:47
-
-
Save aloerina01/0ffe1684f4a90e02cf0743b3b1ac595e to your computer and use it in GitHub Desktop.
marginの役割
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
.contents-top { | |
margin: 16px; | |
} | |
.contents-bottom { | |
margin: 8px; | |
} |
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
<div class="contents"> | |
<div class="contents-top">上の要素です</div> | |
<div class="contents-bottom">下の要素です</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment