Created
May 4, 2016 14:24
-
-
Save aloerina01/0064f6dbc3e58e20bc163bb800ef43c5 to your computer and use it in GitHub Desktop.
CSSの設計 親子関係のエレメント
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
.area { | |
position: relative; | |
width: 100%; | |
} | |
.area.content-area { | |
margin: 8px auto; | |
width: 860px; | |
border: 1px solid #ddd; | |
} | |
.area.content-area-inner { | |
padding: 16px; | |
} |
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
<section class="area content-area"> | |
<div class="content-area-inner"> | |
<!-- コンテンツがびっしり --> | |
</div> | |
</section> |
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
.area { | |
position: relative; | |
width: 100%; | |
.content-area { | |
margin: 8px auto; | |
width: 860px; | |
border: 1px solid #ddd; | |
&-inner { | |
padding: 16px; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment