Last active
July 2, 2017 07:19
-
-
Save myanmarlinks/bf5dfc8457e9f7f5c21c070d02f177bf to your computer and use it in GitHub Desktop.
CSS FlexBox Second
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
@import url('https://fonts.googleapis.com/css?family=Zilla+Slab'); | |
body { | |
font-family: 'Zilla Slab', serif; | |
color: #111; | |
line-height: 1.2; | |
} | |
#container { | |
width: 1080px; | |
margin: 0 auto; | |
margin-top: 20px; | |
height: 500px; | |
display: flex; | |
justify-content: space-between; | |
align-items: stretch; | |
} | |
.box { | |
width: 213px; | |
float: left; | |
padding: 20px; | |
background: #E3F2FD; | |
border: 1px solid #e3e3e3; | |
} | |
.box-a { | |
min-height: 100px; | |
font-size: 100px; | |
} | |
.box-b { | |
min-height: 150px; | |
font-size: 16px; | |
} | |
.box-c { | |
min-height: 50px; | |
font-size: 20px; | |
} | |
.box-d { | |
min-height: 80px; | |
font-size: 30px; | |
} | |
.box p { | |
width: 100%; | |
text-align: center; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment