Created
March 22, 2015 01:50
-
-
Save alekhinen/9700734414ecd1336717 to your computer and use it in GitHub Desktop.
Styling for example.html
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
h3 { | |
font-family: "Helvetica-Neue", sans-serif; | |
font-size: 1.5em; | |
} | |
.section-container { | |
max-width: 1100px; | |
background-color: black; | |
margin: auto; | |
overflow: hidden; | |
padding: 5px; | |
} | |
.section { | |
min-width: calc(50% - 50px); | |
background-color: #fafafa; | |
float: left; | |
margin: 5px; | |
padding: 20px; | |
} | |
@media screen and (max-width: 780px) { | |
.section-container: { | |
width: 100%; | |
margin: 10px; | |
overflow: auto; | |
} | |
.section { | |
width: initial; | |
float: none; | |
margin: 5px; | |
margin-top: 10px; | |
margin-bottom: 10px; | |
} | |
.section:first-child { | |
margin-top: 5px; | |
} | |
.section:last-child { | |
margin-bottom: 5px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment