Created
August 16, 2015 12:52
-
-
Save perfectfoolish/3a16b8f1d0a9b264b3f6 to your computer and use it in GitHub Desktop.
center a block
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
<body> | |
<div class="header"></div> | |
<div class="wrapper"></div> | |
</body> |
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
body { | |
background: #fafafa; | |
margin: 0; | |
} | |
.header { | |
background: #1b39ab; | |
height: 70px; | |
} | |
.wrapper { | |
height: 700px; | |
width: 960px; | |
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4); | |
background: #fff; | |
margin: 10px auto; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment