Skip to content

Instantly share code, notes, and snippets.

@bernardodiasc
Created February 27, 2015 13:36
Show Gist options
  • Save bernardodiasc/f612d40b0a22d7ebd730 to your computer and use it in GitHub Desktop.
Save bernardodiasc/f612d40b0a22d7ebd730 to your computer and use it in GitHub Desktop.
.a, .b, .c, .d, .z {
display: block;
position: relative;
}
.z {
width: 100%;
max-width: 1600px;
margin: 0 auto;
}
.a {
background: blue;
width: 100%;
}
.b {
background: red;
width: 100%;
}
.c {
background: green;
width: 100%;
}
.d {
background: purple;
width: 100%;
}
@media (min-width: 640px) {
.a {
}
.b {
}
.c {
}
.d {
}
}
@media (min-width: 1024px) {
.a {
}
.b {
}
.c {
}
.d {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment