Created
October 20, 2018 00:46
-
-
Save Richarchg/2ec023544a5f6dbec529e8372b9f5d5e to your computer and use it in GitHub Desktop.
projects css
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="header">Header</div> | |
| <div class="aside1">Aside1</div> | |
| <div class="body">Body</div> | |
| <div class="aside2">Aside2</div> | |
| <div class="footer">Footer</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
| body{ | |
| height: 100vh; | |
| display: grid; | |
| grid-template-columns: 1fr 2fr 1fr; | |
| grid-template-rows: 1fr 2fr 1fr; | |
| grid-template-areas: "header header header" "aside1 body aside2" "footer footer footer"; | |
| grid-gap: 10px; | |
| } | |
| .header,.aside1,.aside2,.footer,.body { | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| font-size: 2rem; | |
| } | |
| .header { | |
| background-color: red; | |
| grid-area: header | |
| } | |
| .aside1 { | |
| background-color: cyan; | |
| } | |
| .aside2 { | |
| background-color: royalblue; | |
| } | |
| .body { | |
| background-color: hsl(130,100%,50%); | |
| } | |
| .footer { | |
| background-color: hsla(200,100%,50%,.5); | |
| grid-area: footer | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment