Web Standards: HTML & 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
<style> | |
.article { | |
overflow: hidden; | |
display: -webkit-flex; | |
display: flex; | |
width: 800px; | |
margin: 0 auto; | |
align-items: center; | |
} | |
</style> |
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="pageItems"> | |
<div class="pageContent">Content 1</div> | |
<div class="pageSide">Content 2</div> | |
</div> |
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
<article id="comment-1" class="comment featured">Comment</article> | |
<article id="comment-2" class="comment">Comment</article> |
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
<style> | |
.row { | |
overflow: hidden; | |
} | |
.flex { | |
display: -webkit-flex; | |
display: flex; | |
} | |
.center-block { | |
width: 800px; | |
margin: 0 auto; | |
} | |
.flex-center { | |
align-items: center; | |
} | |
</style> |
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="row flex center-block flex-center"> | |
<div class="col-md-8">Content 1</div> | |
<div class="col-md-4">Content 2</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment